mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
⚡ Minor improvements
This commit is contained in:
parent
c59e522e9e
commit
243c8d579f
|
@ -405,14 +405,16 @@ export default mixins(
|
||||||
},
|
},
|
||||||
wheelScroll (e: WheelEvent) {
|
wheelScroll (e: WheelEvent) {
|
||||||
//* Control + scroll zoom
|
//* Control + scroll zoom
|
||||||
if(e.ctrlKey) {
|
if (e.ctrlKey) {
|
||||||
if(e.deltaY>0) this.setZoom("out"); else this.setZoom("in");
|
if (e.deltaY > 0) {
|
||||||
|
this.setZoom('out');
|
||||||
|
} else {
|
||||||
|
this.setZoom('in');
|
||||||
|
}
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
this.wheelMoveWorkflow(e);
|
this.wheelMoveWorkflow(e);
|
||||||
},
|
},
|
||||||
keyUp (e: KeyboardEvent) {
|
keyUp (e: KeyboardEvent) {
|
||||||
|
|
Loading…
Reference in a new issue