mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-03-05 15:17:32 +08:00
Organizing input actions in device folders
This commit is contained in:
10
js/input/mouse/Zoom.js
Executable file
10
js/input/mouse/Zoom.js
Executable 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user