mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +08:00
9 lines
263 B
JavaScript
9 lines
263 B
JavaScript
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)
|
|
}
|
|
} |