diff --git a/src/controls/FlyControls.ts b/src/controls/FlyControls.ts index 4d473bdc..1fe1bf15 100644 --- a/src/controls/FlyControls.ts +++ b/src/controls/FlyControls.ts @@ -174,7 +174,7 @@ class FlyControls extends EventDispatcher { private pointerdown = (event: MouseEvent): void => { if (this.dragToLook) { - this.mouseStatus++ + this.mouseStatus = 1 } else { switch (event.button) { case 0: @@ -204,7 +204,7 @@ class FlyControls extends EventDispatcher { private pointerup = (event: MouseEvent): void => { if (this.dragToLook) { - this.mouseStatus-- + this.mouseStatus = 0 this.moveState.yawLeft = this.moveState.pitchDown = 0 } else {