mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-19 04:07:33 +08:00
Various improvements
This commit is contained in:
@@ -27,12 +27,12 @@ export default class MouseWheel extends Pointing {
|
||||
}
|
||||
}
|
||||
|
||||
blueprintFocused() {
|
||||
listenEvents() {
|
||||
this.movementSpace.addEventListener("wheel", this.mouseWheelHandler, false)
|
||||
this.movementSpace.parentElement?.addEventListener("wheel", this.mouseParentWheelHandler)
|
||||
}
|
||||
|
||||
blueprintUnfocused() {
|
||||
unlistenEvents() {
|
||||
this.movementSpace.removeEventListener("wheel", this.mouseWheelHandler, false)
|
||||
this.movementSpace.parentElement?.removeEventListener("wheel", this.mouseParentWheelHandler)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user