mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
:spakles: Ctrl + scroll zoom (#1419)
This commit is contained in:
@@ -404,6 +404,15 @@ export default mixins(
|
|||||||
this.mouseUpMoveWorkflow(e);
|
this.mouseUpMoveWorkflow(e);
|
||||||
},
|
},
|
||||||
wheelScroll (e: WheelEvent) {
|
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);
|
this.wheelMoveWorkflow(e);
|
||||||
},
|
},
|
||||||
keyUp (e: KeyboardEvent) {
|
keyUp (e: KeyboardEvent) {
|
||||||
|
|||||||
Reference in New Issue
Block a user