Skip to content

Commit

Permalink
fix: number input scrubber test
Browse files Browse the repository at this point in the history
  • Loading branch information
anubra266 committed Apr 12, 2022
1 parent d0793a4 commit f4bf813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utilities/dom/src/pointerlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f4bf813

Please sign in to comment.