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

Can't open example on detecting device orientation page #12675

Open
ThePeregrinus opened this issue Feb 26, 2025 · 2 comments
Open

Can't open example on detecting device orientation page #12675

ThePeregrinus opened this issue Feb 26, 2025 · 2 comments
Labels
needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@ThePeregrinus
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/Device_orientation_events/Detecting_device_orientation

What specific section or headline is this issue about?

Can't open example on android phone

What information was incorrect, unhelpful, or incomplete?

From the mobile browser Google Chrome I can't access the example. After clicking on the “continue” button nothing happens. The example works in the Firefox browser

Image

Image

What did you expect to see?

Orientation example

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@ThePeregrinus ThePeregrinus added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Feb 26, 2025
@bsmth bsmth transferred this issue from mdn/content Feb 26, 2025
@ThePeregrinus
Copy link
Author

Somehow other chrome orientation examples don't work as well. Maybe Chrome bug

This example works on firefox but not on chrome
https://sensorbox.glitch.me/

@ThePeregrinus
Copy link
Author

The problem is solved. I enable motion sensor in chrome settings and example starts working on android chrome.

Image

However, there are still a few problems:

  1. It should be mentioned that due to motion sensor disabled in the settings, there may be problems
  2. requestPermission() static method is not added to example therefore the example will not run on Safari

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

No branches or pull requests

1 participant