mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-20 11:23:29 +00:00
Update litegraph with upstream: middle mouse dragging.
This commit is contained in:
parent
2cd3980199
commit
5f101f4da1
@ -6233,12 +6233,18 @@ LGraphNode.prototype.executeAction = function(action)
|
|||||||
,posAdd:[!mClikSlot_isOut?-30:30, -alphaPosY*130] //-alphaPosY*30]
|
,posAdd:[!mClikSlot_isOut?-30:30, -alphaPosY*130] //-alphaPosY*30]
|
||||||
,posSizeFix:[!mClikSlot_isOut?-1:0, 0] //-alphaPosY*2*/
|
,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) {
|
} else if (e.which == 3 || this.pointer_is_double) {
|
||||||
|
|
||||||
//right button
|
//right button
|
||||||
|
Loading…
Reference in New Issue
Block a user