Organizing input actions in device folders

This commit is contained in:
barsdeveloper
2022-01-05 22:26:56 +01:00
parent 7704850cf6
commit a6ff4161e8
19 changed files with 41 additions and 41 deletions

10
js/input/mouse/Zoom.js Executable file
View File

@@ -0,0 +1,10 @@
import MouseWheel from "./MouseWheel"
export default class Zoom extends MouseWheel {
wheel(variation, location) {
let zoomLevel = this.blueprint.getZoom()
zoomLevel -= variation
this.blueprint.setZoom(zoomLevel, location)
}
}