From a60f6f1abc3df8a1b258e4d9256a86c621469d3c Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 27 Apr 2026 19:29:09 +0200 Subject: [PATCH] Define grace period for pointer lock escape release --- src/runtime-three/runtime-host.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index 3bd25973..e89cb8bc 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -333,6 +333,7 @@ interface RuntimeWaterContactUniformBinding { const FALLBACK_FACE_COLOR = 0xf2ece2; const RUNTIME_CLOCK_PUBLISH_INTERVAL_SECONDS = 1 / 30; const WATER_REFLECTION_UPDATE_INTERVAL_MS = 96; +const POINTER_LOCK_ESCAPE_RELEASE_GRACE_MS = 500; const CAMERA_RIG_POINTER_LOOK_SENSITIVITY = 0.004; const CAMERA_RIG_GAMEPAD_LOOK_SPEED = 2.2; const DIALOGUE_ATTENTION_CAMERA_TRANSITION_DURATION_SECONDS = 0.35;