Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix double click handling by not using faulty is_primary check

Zentropivitye9206a52da64
diff --git a/web/lib/litegraph.core.js b/web/lib/litegraph.core.js
index e86ecf67b..ba88bd264 100644
--- a/web/lib/litegraph.core.js
+++ b/web/lib/litegraph.core.js
@@ -5801,7 +5801,7 @@ LGraphNode.prototype.executeAction = function(action)
var skip_action = false;
var now = LiteGraph.getTime();
var is_primary = (e.isPrimary === undefined || !e.isPrimary);
- var is_double_click = (now - this.last_mouseclick < 300) && is_primary;
+ var is_double_click = (now - this.last_mouseclick < 300);
this.mouse[0] = e.clientX;
this.mouse[1] = e.clientY;
this.graph_mouse[0] = e.canvasX;