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

Device orientation issue in ios #818

Open
sahilimmco opened this issue Oct 24, 2022 · 0 comments
Open

Device orientation issue in ios #818

sahilimmco opened this issue Oct 24, 2022 · 0 comments

Comments

@sahilimmco
Copy link

Describe the bug
I am using location based ar.js. when I change from portrait to landscape the object changes its position on I-Pad .But while checking with android device it is working fine. If anybody have the solution please share with me.
while debugging I found that android is using deviceOrientationAbsolute event and iOS is using deviceOrientation event. iOS doesn't support deviceOrientationAbsolute. How to solve this issue

To Reproduce
Steps to reproduce the behavior:
place an object using location based ar.js and locate the object this change the mode from portrait to landscape in I-Pad or I-phone the you can see the change in its position

Smartphone (please complete the following information):

  • Device: [e.g. iPhone11,iphone 8, I-Pad 5th gen and 8th gen]
  • OS: [e.g. iOS16,iOS15,IpadOS15]
  • Browser [e.g. chrome, safari]

Additional context
Add any other context about the problem here.

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

1 participant