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

Instructions for cardboard/landscape are missing when entering VR #1213

Closed
masom opened this issue Mar 21, 2016 · 7 comments
Closed

Instructions for cardboard/landscape are missing when entering VR #1213

masom opened this issue Mar 21, 2016 · 7 comments
Assignees
Milestone

Comments

@masom
Copy link
Contributor

masom commented Mar 21, 2016

Description:
Instructions on rotating the device into landscape / into cardboard are now missing.

  • A-Frame Version: master
  • Platform/Device: Android, iOS
@dmarcos
Copy link
Member

dmarcos commented Mar 21, 2016

@cvan Anything in the top of your mind?

@ngokevin ngokevin added this to the 0.2.0 milestone Mar 21, 2016
@cvan
Copy link
Contributor

cvan commented Mar 21, 2016

I haven't changed anything here yet. I am in #1132 but haven't touched it. I will investigate though.

@cvan cvan self-assigned this Mar 21, 2016
@cvan
Copy link
Contributor

cvan commented Mar 23, 2016

Investigated this a bit and figured out a solution. A slight regression occurred (I think when the code was moved to a component): On iOS, the orientation modal doesn't appear until you rotate to landscape then rotate to portrait again. If the device is in portrait mode when VR mode is entered, the orientation modal doesn't show up. (In A-Frame 0.1.2, this works as expected.)

On Android, the orientation modal never shows up. There's an explicit check for only iOS; that's because it's assumed that iOS is the only mobile platform where the Fullscreen API isn't supported. This is mostly true (except Windows phone; I know, not a big deal here). Anyway, I have a fix for this too.

@ngokevin
Copy link
Member

FWIW, it was working 2 weeks ago #1111

@cvan
Copy link
Contributor

cvan commented Mar 23, 2016

From what I found, it works only when you rotate to landscape immediately after entering VR mode then go back to portrait. Anyway, not sure which commit caused it; I didn't bother bisecting. But I've got a fix on the way, and it addresses a few other edge cases. And a few others, but I'm going to open up separate PRs for those.

@ngokevin
Copy link
Member

Yeah, I think that's always been an issue. #879

@cvan
Copy link
Contributor

cvan commented Mar 23, 2016

Yeah, I think that's always been an issue. #879

ah, well then this bug is a dupe

@cvan cvan added the mobile label Mar 23, 2016
dmarcos added a commit that referenced this issue Mar 24, 2016
fix modal for changing orientation when in portrait in VR mode (fixes #1213)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants