Refactor pointer lock detection and simplify event listeners in navigation controller
This commit is contained in:
@@ -4899,7 +4899,7 @@ export function App({ store, initialStatusMessage }: AppProps) {
|
||||
return;
|
||||
}
|
||||
|
||||
const pointerCaptured = firstPersonTelemetry?.pointerLocked === true;
|
||||
const pointerCaptured = document.pointerLockElement !== null;
|
||||
|
||||
if (pointerCaptured) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user