mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
⚡ Add horizontal scroll (#1172)
This commit is contained in:
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]});
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue