diff --git a/packages/utilities/dom/src/pointerlock.ts b/packages/utilities/dom/src/pointerlock.ts index 9657d866d8..cb2eaaf810 100644 --- a/packages/utilities/dom/src/pointerlock.ts +++ b/packages/utilities/dom/src/pointerlock.ts @@ -80,7 +80,7 @@ export function requestPointerLock(doc: Document, handlers: PointerLockHandlers } function setup() { - if (!isSupported()) return + if (!isSupported() || !hasLockElement()) return body.requestPointerLock = getPointerlockFunc(body) body.requestPointerLock() addEventListeners()