mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 22:37:32 +00:00
fixes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user