Fix not title click cond (#92)

This commit is contained in:
Chenlei Hu
2024-08-27 11:08:08 -04:00
committed by GitHub
parent 540519cfa2
commit 48613a3539

View File

@@ -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);
}