fix(editor): Zoom in/out on canvas the same amount on scroll/gesture (#7602)

Github issue / Community forum post (link here to close automatically):

https://community.n8n.io/t/ctrl-mousewheel-zoom-jumps-out-possible-to-avoid/31952
This commit is contained in:
Elias Meire
2023-11-03 14:09:18 +01:00
committed by GitHub
parent 0bd4e742da
commit c92402a3ca
3 changed files with 25 additions and 14 deletions

View File

@@ -265,7 +265,8 @@ export class WorkflowPage extends BasePage {
ctrlKey: true,
pageX: cy.window().innerWidth / 2,
pageY: cy.window().innerHeight / 2,
deltaY: mode === 'zoomOut' ? 16 * steps : -16 * steps,
deltaMode: 1,
deltaY: mode === 'zoomOut' ? steps : -steps,
});
},
hitUndo: () => {