Minor improvements

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

View file

@ -406,13 +406,15 @@ 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) {