: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

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) {