From 5f101f4da14e0b4a360ca1d0c380fab174d301bf Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Thu, 31 Aug 2023 02:25:21 -0400 Subject: [PATCH] Update litegraph with upstream: middle mouse dragging. --- web/lib/litegraph.core.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/lib/litegraph.core.js b/web/lib/litegraph.core.js index 356c71ac..4bb2f0d9 100644 --- a/web/lib/litegraph.core.js +++ b/web/lib/litegraph.core.js @@ -6233,11 +6233,17 @@ LGraphNode.prototype.executeAction = function(action) ,posAdd:[!mClikSlot_isOut?-30:30, -alphaPosY*130] //-alphaPosY*30] ,posSizeFix:[!mClikSlot_isOut?-1:0, 0] //-alphaPosY*2*/ }); - + skip_action = true; } } } } + + if (!skip_action && this.allow_dragcanvas) { + //console.log("pointerevents: dragging_canvas start from middle button"); + this.dragging_canvas = true; + } + } else if (e.which == 3 || this.pointer_is_double) {