Skip to content

Conversation

@fernandojsg
Copy link
Member

Right now if we call scene.exitVR() it will just go back to the standard state if we are on VR but not if we're just in fullscreen mode. This PR introduces a call to exitFullScreen on the exitVR function.

return this.effect.exitPresent().then(exitVRSuccess, exitVRFailure);
}
exitVRSuccess();
function exitFullscreen () {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could move this down to where the enter fullscreen function is

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure!

exitVR: {
value: function () {
var self = this;
exitFullscreen();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should call this after the not-in-VR check below

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it won't work. Just entering fullscreen does not set the state to vr-mode

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep

@ngokevin
Copy link
Member

r+wc

@fernandojsg fernandojsg merged commit a6100f8 into aframevr:master Jan 10, 2017
@fernandojsg fernandojsg deleted the fullscreen branch January 10, 2017 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants