Skip to content

Commit

Permalink
Merge pull request chakra-ui#50 from chakra-ui/fix/number-input-scrubber
Browse files Browse the repository at this point in the history
fix: number input scrubber test
  • Loading branch information
segunadebayo authored Apr 13, 2022
2 parents bf514ad + f4bf813 commit e697d5a
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 e697d5a

Please sign in to comment.