mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
✨ Make it possible to move workflow with mouse-wheel/two-finger
This commit is contained in:
@@ -83,5 +83,11 @@ export const moveNodeWorkflow = mixins(nodeIndex).extend({
|
||||
|
||||
this.moveWorkflow(e);
|
||||
},
|
||||
wheelMoveWorkflow (e: WheelEvent) {
|
||||
const offsetPosition = this.$store.getters.getNodeViewOffsetPosition;
|
||||
const nodeViewOffsetPositionX = offsetPosition[0] - e.deltaX;
|
||||
const nodeViewOffsetPositionY = offsetPosition[1] - e.deltaY;
|
||||
this.$store.commit('setNodeViewOffsetPosition', [nodeViewOffsetPositionX, nodeViewOffsetPositionY]);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user