From b5a4ce8f4f120fe793729076616c7f40ea0ddaeb Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Fri, 12 May 2023 17:00:41 +0900 Subject: [PATCH] allow other actions. Just block dragging node. --- build/litegraph.core.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build/litegraph.core.js b/build/litegraph.core.js index e7843aceb..dab00eaa2 100755 --- a/build/litegraph.core.js +++ b/build/litegraph.core.js @@ -5831,7 +5831,7 @@ LGraphNode.prototype.executeAction = function(action) } //left button mouse / single finger - if (e.which == 1 && !this.pointer_is_double && (!node || !node.flags || !node.flags.pinned)) + if (e.which == 1 && !this.pointer_is_double) { if (e.ctrlKey) { @@ -6018,6 +6018,11 @@ LGraphNode.prototype.executeAction = function(action) //it wasn't clicked on the links boxes if (!skip_action) { var block_drag_node = false; + + if(node && node.flags && node.flags.pinned) { + block_drag_node = true; + } + var pos = [e.canvasX - node.pos[0], e.canvasY - node.pos[1]]; //widgets