Fix menu-scrolling not working in freeflight mode

This commit is contained in:
Lukas Rieger (Blue) 2023-02-08 18:47:10 +01:00
parent 66058dbe5f
commit 0ac4a933a6
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2

View File

@ -78,7 +78,7 @@ export class FreeFlightControls {
this.target.addEventListener("contextmenu", this.onContextMenu);
this.target.addEventListener("mousedown", this.onMouseDown);
this.target.addEventListener("mouseup", this.onMouseUp);
window.addEventListener("wheel", this.onWheel, {passive: false});
this.target.addEventListener("wheel", this.onWheel, {passive: false});
}
stop() {
@ -91,7 +91,7 @@ export class FreeFlightControls {
this.target.removeEventListener("contextmenu", this.onContextMenu);
this.target.removeEventListener("mousedown", this.onMouseDown);
this.target.removeEventListener("mouseup", this.onMouseUp);
window.removeEventListener("wheel", this.onWheel);
this.target.removeEventListener("wheel", this.onWheel);
}
/**