You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Incorrect support data (example: Chrome says "86" but support was added in "40")
What information was incorrect, unhelpful, or incomplete?
Chrome for Android does not support the Pointer Lock API on Android devices. This probably also affects other Chromium-based browsers unless they are patched to enable this feature.
What browsers does this problem apply to, if applicable?
Expected: If using touch device or mouse, pointer lock overlay appears warning that pointer lock has been obtained by page. If using mouse, cursor is not shown on screen. In all cases, pointer lock is successfully obtained by page.
Observed: Nothing occurs visually and mouse/touch behavior does not change
Did you test this? If so, how?
Tested on Chrome for Android 112.0.5615.135 Stable on Android 12, using external mouse and touch screen. Neither worked with several Pointer Lock API demos, including https://mdn.github.io/dom-examples/pointer-lock/ . The Pointer Lock API does not throw an exception, but also does not lock the pointer (seems like essentially a no-op).
When unable to obtain pointer lock on Android, I think document.pointerLockElement is not set and pointerlockchange events are not emitted, but haven't tested this in isolation.
Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
What type of issue is this?
Incorrect support data (example: Chrome says "86" but support was added in "40")
What information was incorrect, unhelpful, or incomplete?
Chrome for Android does not support the Pointer Lock API on Android devices. This probably also affects other Chromium-based browsers unless they are patched to enable this feature.
What browsers does this problem apply to, if applicable?
Chromium (Chrome, Edge 79+, Opera, Samsung Internet)
What did you expect to see?
Expected: If using touch device or mouse, pointer lock overlay appears warning that pointer lock has been obtained by page. If using mouse, cursor is not shown on screen. In all cases, pointer lock is successfully obtained by page.
Observed: Nothing occurs visually and mouse/touch behavior does not change
Did you test this? If so, how?
Tested on Chrome for Android 112.0.5615.135 Stable on Android 12, using external mouse and touch screen. Neither worked with several Pointer Lock API demos, including https://mdn.github.io/dom-examples/pointer-lock/ . The Pointer Lock API does not throw an exception, but also does not lock the pointer (seems like essentially a no-op).
When unable to obtain pointer lock on Android, I think
document.pointerLockElement
is not set andpointerlockchange
events are not emitted, but haven't tested this in isolation.Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
You can test on https://mdn.github.io/dom-examples/pointer-lock/ using either touch screen or external mouse.
See this feature crbug: https://bugs.chromium.org/p/chromium/issues/detail?id=153419
Do you have anything more you want to share?
No response
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Lock_API
MDN metadata
MDN page report details
api.Element.requestPointerLock
The text was updated successfully, but these errors were encountered: