mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-04 04:30:04 +00:00
Prevent unselecting blocks if the user double-clicks on them.
This commit is contained in:
@@ -6063,6 +6063,12 @@ LGraphNode.prototype.executeAction = function(action)
|
||||
this.node_dragged = node;
|
||||
}
|
||||
this.processNodeSelected(node, e);
|
||||
} else { // double-click
|
||||
/**
|
||||
* Don't call the function if the block is already selected.
|
||||
* Otherwise, it could cause the block to be unselected while its panel is open.
|
||||
*/
|
||||
if (!node.is_selected) this.processNodeSelected(node, e);
|
||||
}
|
||||
|
||||
this.dirty_canvas = true;
|
||||
|
||||
Reference in New Issue
Block a user