:spakles: Ctrl + scroll zoom (#1419)

This commit is contained in:
Florian Metz 2021-02-08 07:51:23 +01:00 committed by GitHub
parent 894a4b950a
commit c59e522e9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -404,6 +404,15 @@ export default mixins(
this.mouseUpMoveWorkflow(e);
},
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);
},
keyUp (e: KeyboardEvent) {