mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
⚡ Add horizontal scroll (#1172)
This commit is contained in:
committed by
GitHub
parent
d9a7d5fa34
commit
137c334389
@@ -99,8 +99,8 @@ export const moveNodeWorkflow = mixins(
|
||||
wheelMoveWorkflow (e: WheelEvent) {
|
||||
const normalized = normalizeWheel(e);
|
||||
const offsetPosition = this.$store.getters.getNodeViewOffsetPosition;
|
||||
const nodeViewOffsetPositionX = offsetPosition[0] - normalized.pixelX;
|
||||
const nodeViewOffsetPositionY = offsetPosition[1] - normalized.pixelY;
|
||||
const nodeViewOffsetPositionX = offsetPosition[0] - (e.shiftKey ? normalized.pixelY : normalized.pixelX);
|
||||
const nodeViewOffsetPositionY = offsetPosition[1] - (e.shiftKey ? normalized.pixelX : normalized.pixelY);
|
||||
this.$store.commit('setNodeViewOffsetPosition', {newOffset: [nodeViewOffsetPositionX, nodeViewOffsetPositionY]});
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user