Skip to content

Commit 0a4bd19

Browse files
authored
Merge pull request #389 from ltdrdata/Main
block node dragging if node is 'pinned'
2 parents 2970a82 + 51df6ed commit 0a4bd19

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

build/litegraph.core.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)