This commit is contained in:
tamat
2020-05-15 12:15:33 +02:00
parent a1c312fab9
commit 4cb1d9c0e5
7 changed files with 85 additions and 24 deletions

View File

@@ -6115,7 +6115,7 @@ LGraphNode.prototype.executeAction = function(action)
this.adjustMouseEvent(e);
var pos = [e.canvasX, e.canvasY];
var node = this.graph.getNodeOnPos(pos[0], pos[1]);
var node = this.graph ? this.graph.getNodeOnPos(pos[0], pos[1]) : null;
if (!node) {
var r = null;
@@ -8412,7 +8412,7 @@ LGraphNode.prototype.executeAction = function(action)
break;
default:
if (w.draw) {
w.draw(ctx, node, w, y, H);
w.draw(ctx, node, width, y, H);
}
break;
}