diff --git a/frontend/apps/editor3d/app/src/pages/PageEnigma/Editor/free_cam.ts b/frontend/apps/editor3d/app/src/pages/PageEnigma/Editor/free_cam.ts index 1f2674dcd7..5878047c2c 100644 --- a/frontend/apps/editor3d/app/src/pages/PageEnigma/Editor/free_cam.ts +++ b/frontend/apps/editor3d/app/src/pages/PageEnigma/Editor/free_cam.ts @@ -220,8 +220,12 @@ class FreeCam extends EventDispatcher { this.updateMovementVector(); } + isStationary() { + return this.moveVector.distanceTo(new Vector3(0, 0, 0)) === 0; + } + update(delta: number) { - if (!this.enabled) { + if (!this.enabled || this.isStationary()) { return; }