Merge pull request #389 from ltdrdata/Main

block node dragging if node is 'pinned'
This commit is contained in:
Javi Agenjo
2023-06-30 09:31:59 +02:00
committed by GitHub

View File

@@ -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