Refactor pointer lock detection and simplify event listeners in navigation controller

This commit is contained in:
2026-04-27 19:00:38 +02:00
parent daf7d69eee
commit 552af93d72
2 changed files with 3 additions and 17 deletions

View File

@@ -4899,7 +4899,7 @@ export function App({ store, initialStatusMessage }: AppProps) {
return;
}
const pointerCaptured = firstPersonTelemetry?.pointerLocked === true;
const pointerCaptured = document.pointerLockElement !== null;
if (pointerCaptured) {
return;