mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-28 03:24:43 +08:00
Large mouse events refactoring and cleanup
This commit is contained in:
9
js/input/UZoom.js
Normal file
9
js/input/UZoom.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import UMouseWheel from "./UMouseWheel";
|
||||
|
||||
export default class UZoom extends UMouseWheel {
|
||||
wheel(variation, location) {
|
||||
let zoomLevel = this.blueprint.getZoom()
|
||||
zoomLevel -= variation
|
||||
this.blueprint.setZoom(zoomLevel, location)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user