From 48613a35392d85f11aff3bb799d2cf5a9970ba8a Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Tue, 27 Aug 2024 11:08:08 -0400 Subject: [PATCH] Fix not title click cond (#92) --- src/litegraph.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/litegraph.js b/src/litegraph.js index 4fd957ed..6b56663c 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -6074,7 +6074,9 @@ LGraphNode.prototype.executeAction = function(action) //double clicking if (this.allow_interaction && is_double_click && this.selected_nodes[node.id]) { //check if it's a double click on the title bar - if (pos[1] < LiteGraph.NODE_TITLE_HEIGHT) { + // Note: pos[1] is the y-coordinate of the node's body + // If clicking on node header (title), pos[1] is negative + if (pos[1] < 0) { if (node.onNodeTitleDblClick) { node.onNodeTitleDblClick(e, pos, this); }