From 8c5d45e7f8b870129062b9027578937bfed673f0 Mon Sep 17 00:00:00 2001 From: Zentropivity Date: Thu, 16 Mar 2023 17:05:26 +0100 Subject: [PATCH 1/4] Correct html head and switch litegraph to pointer mode. --- web/index.html | 3 ++- web/lib/litegraph.core.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/index.html b/web/index.html index cd95594f..b5911fd4 100644 --- a/web/index.html +++ b/web/index.html @@ -1,10 +1,11 @@ + + - From e9206a52da64dc020657565f1341a417534c27a4 Mon Sep 17 00:00:00 2001 From: Zentropivity Date: Thu, 23 Mar 2023 10:06:06 +0100 Subject: [PATCH 3/4] 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; From 4461ddc9e67875c22d3a222e8c86cd67f8af0f66 Mon Sep 17 00:00:00 2001 From: Zentropivity Date: Fri, 24 Mar 2023 19:18:58 +0100 Subject: [PATCH 4/4] Change close on mouseleave to false --- 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 ba88bd26..862d5906 100644 --- a/web/lib/litegraph.core.js +++ b/web/lib/litegraph.core.js @@ -108,7 +108,7 @@ node_box_coloured_when_on: false, // [true!] this make the nodes box (top left circle) coloured when triggered (execute/action), visual feedback node_box_coloured_by_mode: false, // [true!] nodebox based on node mode, visual feedback - dialog_close_on_mouse_leave: true, // [false on mobile] better true if not touch device, TODO add an helper/listener to close if false + dialog_close_on_mouse_leave: false, // [false on mobile] better true if not touch device, TODO add an helper/listener to close if false dialog_close_on_mouse_leave_delay: 500, shift_click_do_break_link_from: false, // [false!] prefer false if results too easy to break links - implement with ALT or TODO custom keys