fix: issues #272

We should avoid using undeclared variables
This commit is contained in:
Gauss Zhou
2021-11-14 00:19:12 +08:00
committed by GitHub
parent 9853fc2958
commit c0ec1ce0a8

View File

@@ -7477,7 +7477,9 @@ LGraphNode.prototype.executeAction = function(action)
* @method adjustMouseEvent
**/
LGraphCanvas.prototype.adjustMouseEvent = function(e) {
var clientX_rel = 0;
var clientY_rel = 0;
if (this.canvas) {
var b = this.canvas.getBoundingClientRect();
clientX_rel = e.clientX - b.left;