mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
:spakles: Ctrl + scroll zoom (#1419)
This commit is contained in:
parent
894a4b950a
commit
c59e522e9e
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue