Minor improvements

This commit is contained in:
Jan Oberhauser 2021-02-08 07:52:09 +01:00
parent c59e522e9e
commit 243c8d579f

View file

@ -405,14 +405,16 @@ export default mixins(
},
wheelScroll (e: WheelEvent) {
//* Control + scroll zoom
if(e.ctrlKey) {
if(e.deltaY>0) this.setZoom("out"); else this.setZoom("in");
if (e.ctrlKey) {
if (e.deltaY > 0) {
this.setZoom('out');
} else {
this.setZoom('in');
}
e.preventDefault();
return;
}
this.wheelMoveWorkflow(e);
},
keyUp (e: KeyboardEvent) {