Skip to content

Commit b5a4ce8

Browse files
committed
allow other actions.
Just block dragging node.
1 parent fd104e9 commit b5a4ce8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

build/litegraph.core.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5831,7 +5831,7 @@ LGraphNode.prototype.executeAction = function(action)
58315831
}
58325832

58335833
//left button mouse / single finger
5834-
if (e.which == 1 && !this.pointer_is_double && (!node || !node.flags || !node.flags.pinned))
5834+
if (e.which == 1 && !this.pointer_is_double)
58355835
{
58365836
if (e.ctrlKey)
58375837
{
@@ -6018,6 +6018,11 @@ LGraphNode.prototype.executeAction = function(action)
60186018
//it wasn't clicked on the links boxes
60196019
if (!skip_action) {
60206020
var block_drag_node = false;
6021+
6022+
if(node && node.flags && node.flags.pinned) {
6023+
block_drag_node = true;
6024+
}
6025+
60216026
var pos = [e.canvasX - node.pos[0], e.canvasY - node.pos[1]];
60226027

60236028
//widgets

0 commit comments

Comments
 (0)