Skip to content

Commit 21bdba6

Browse files
authored
Merge pull request jagenjo#413 from Lerc/master
Middle mouse drag (even when over nodes)
2 parents 7e9518f + 9b24af3 commit 21bdba6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/litegraph.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6226,7 +6226,11 @@ LGraphNode.prototype.executeAction = function(action)
62266226
}
62276227
}
62286228
}
6229-
}
6229+
} else if (!skip_action && this.allow_dragcanvas) {
6230+
//console.log("pointerevents: dragging_canvas start from middle button");
6231+
this.dragging_canvas = true;
6232+
}
6233+
62306234

62316235
} else if (e.which == 3 || this.pointer_is_double) {
62326236

0 commit comments

Comments
 (0)