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

How to disable App rotation? #1117

Open
NicoHood opened this issue Mar 10, 2024 · 1 comment
Open

How to disable App rotation? #1117

NicoHood opened this issue Mar 10, 2024 · 1 comment

Comments

@NicoHood
Copy link

I want to refer to the same issue on bubblewrap:
GoogleChromeLabs/bubblewrap#678

What I want to achieve is:

  • Disable App rotation if the phone has set orientation lock
  • But allow rotation if the phone does allow

If I set orientation to any it will always rotate, no matter if the phone is locked or not. If I set it to natural it will never rotate at all.

Is there any way to fix this?

@westonruter
Copy link
Collaborator

Maybe you're looking for the Screen Orientation API: https://developer.mozilla.org/en-US/docs/Web/API/CSS_Object_Model/Managing_screen_orientation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants