Merge pull request #273 from gausszhou/master

fix: issues #272
This commit is contained in:
Javi Agenjo
2021-11-15 11:30:49 +01:00
committed by GitHub

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;