From e9206a52da64dc020657565f1341a417534c27a4 Mon Sep 17 00:00:00 2001 From: Zentropivity Date: Thu, 23 Mar 2023 10:06:06 +0100 Subject: [PATCH] Fix double click handling by not using faulty is_primary check --- web/lib/litegraph.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/lib/litegraph.core.js b/web/lib/litegraph.core.js index e86ecf67..ba88bd26 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;