Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api.Element.requestPointerLock - Not supported on Chrome for Android #19829

Open
alesandroortiz opened this issue May 11, 2023 · 1 comment
Open
Labels
data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API

Comments

@alesandroortiz
Copy link
Contributor

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 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?

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
@JeffreyBlanz
Copy link

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: Fyrd/caniuse#7065

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

No branches or pull requests

3 participants