The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Latest litegraph from upstream.
comfyanonymousc092ffcc18f0
diff --git a/web/lib/litegraph.core.js b/web/lib/litegraph.core.jsindex 95f4a2735..908ed5f16 100644--- a/web/lib/litegraph.core.js+++ b/web/lib/litegraph.core.js@@ -8099,11 +8099,15 @@ LGraphNode.prototype.executeAction = function(action)bgcolor = bgcolor || LiteGraph.NODE_DEFAULT_COLOR;hovercolor = hovercolor || "#555";textcolor = textcolor || LiteGraph.NODE_TEXT_COLOR;- var yFix = y + LiteGraph.NODE_TITLE_HEIGHT + 2; // fix the height with the title- var pos = this.mouse;- var hover = LiteGraph.isInsideRectangle( pos[0], pos[1], x,yFix,w,h );- pos = this.last_click_position;- var clicked = pos && LiteGraph.isInsideRectangle( pos[0], pos[1], x,yFix,w,h );+ var pos = this.ds.convertOffsetToCanvas(this.graph_mouse);+ var hover = LiteGraph.isInsideRectangle( pos[0], pos[1], x,y,w,h );+ pos = this.last_click_position ? [this.last_click_position[0], this.last_click_position[1]] : null;+ if(pos) {+ var rect = this.canvas.getBoundingClientRect();+ pos[0] -= rect.left;+ pos[1] -= rect.top;+ }+ var clicked = pos && LiteGraph.isInsideRectangle( pos[0], pos[1], x,y,w,h );ctx.fillStyle = hover ? hovercolor : bgcolor;if(clicked)