Open alesandroortiz opened 1 year ago
This is still an issue.
MDN docs and caniuse both say pointer lock API is supported on chrome for android. It should say it is not supported.
When doing a pointer lock API test, it does not work: https://mdn.github.io/dom-examples/pointer-lock/
MDN doc: https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Lock_API
Caniuse doc: https://caniuse.com/pointerlock
Chrome bug: https://bugs.chromium.org/p/chromium/issues/detail?id=153419
Chrome Feature announce stating android does not support it: https://chromestatus.com/feature/6753200417800192
Caniuse github report: https://github.com/Fyrd/caniuse/issues/7065
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
* Query: `api.Element.requestPointerLock` * Report started: 2023-05-11T16:13:31.870Z