This commit is contained in:
tamat
2021-11-16 17:05:47 +01:00
parent d082927648
commit f3f60fcd34
6 changed files with 492 additions and 486 deletions

View File

@@ -7473,7 +7473,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;