mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
✨ Make it possible to move workflow with mouse-wheel/two-finger
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
:class="workflowClasses"
|
||||
@mousedown="mouseDown"
|
||||
@mouseup="mouseUp"
|
||||
@wheel="wheelScroll"
|
||||
>
|
||||
<div class="node-view-background" :style="backgroundStyle"></div>
|
||||
<div id="node-view" class="node-view" :style="workflowStyle">
|
||||
@@ -339,6 +340,9 @@ export default mixins(
|
||||
this.mouseUpMouseSelect(e);
|
||||
this.mouseUpMoveWorkflow(e);
|
||||
},
|
||||
wheelScroll (e: WheelEvent) {
|
||||
this.wheelMoveWorkflow(e);
|
||||
},
|
||||
keyUp (e: KeyboardEvent) {
|
||||
if (e.key === this.controlKeyCode) {
|
||||
this.ctrlKeyPressed = false;
|
||||
|
||||
Reference in New Issue
Block a user