mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-19 13:10:45 +08:00
Naming
This commit is contained in:
9
js/input/Zoom.js
Normal file
9
js/input/Zoom.js
Normal file
@@ -0,0 +1,9 @@
|
||||
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