default to drag inputs to disconnect

This commit is contained in:
tamat
2021-11-16 17:04:40 +01:00
parent 9853fc2958
commit fc7045d71f
7 changed files with 4041 additions and 1983 deletions

View File

@@ -5209,7 +5209,7 @@ LGraphNode.prototype.executeAction = function(action)
this.allow_dragnodes = true;
this.allow_interaction = true; //allow to control widgets, buttons, collapse, etc
this.allow_searchbox = true;
this.allow_reconnect_links = false; //allows to change a connection with having to redo it again
this.allow_reconnect_links = true; //allows to change a connection with having to redo it again
this.align_to_grid = false; //snap to grid
this.drag_mode = false;
@@ -5868,17 +5868,11 @@ LGraphNode.prototype.executeAction = function(action)
} //if it wasn't selected?
//not dragging mouse to connect two slots
if (
!this.connecting_node &&
!node.flags.collapsed &&
!this.live_mode
) {
if ( !this.connecting_node && !node.flags.collapsed && !this.live_mode ) {
//Search for corner for resize
if (
!skip_action &&
if ( !skip_action &&
node.resizable !== false &&
isInsideRectangle(
e.canvasX,
isInsideRectangle( e.canvasX,
e.canvasY,
node.pos[0] + node.size[0] - 5,
node.pos[1] + node.size[1] - 5,