mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
:spakles: Ctrl + scroll zoom (#1419)
This commit is contained in:
@@ -404,6 +404,15 @@ export default mixins(
|
||||
this.mouseUpMoveWorkflow(e);
|
||||
},
|
||||
wheelScroll (e: WheelEvent) {
|
||||
//* Control + scroll zoom
|
||||
if(e.ctrlKey) {
|
||||
if(e.deltaY>0) this.setZoom("out"); else this.setZoom("in");
|
||||
|
||||
e.preventDefault();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
this.wheelMoveWorkflow(e);
|
||||
},
|
||||
keyUp (e: KeyboardEvent) {
|
||||
|
||||
Reference in New Issue
Block a user