mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-13 08:34:46 +08:00
11 lines
273 B
JavaScript
Executable File
11 lines
273 B
JavaScript
Executable File
import IMouseWheel from "./IMouseWheel"
|
|
|
|
export default class Zoom extends IMouseWheel {
|
|
|
|
wheel(variation, location) {
|
|
let zoomLevel = this.blueprint.getZoom()
|
|
zoomLevel -= variation
|
|
this.blueprint.setZoom(zoomLevel, location)
|
|
}
|
|
}
|