-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Add support for offerSession #5410
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
Changes from 2 commits
ac29977
e173bb9
a03d112
94488f7
d1a057f
e44bd2b
4fd2c88
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -120,8 +120,6 @@ module.exports.Component = registerComponent('xr-mode-ui', { | |
|
|
||
| this.orientationModalEl = createOrientationModal(this.onModalClick); | ||
| sceneEl.appendChild(this.orientationModalEl); | ||
|
|
||
| this.updateEnterInterfaces(); | ||
cabanier marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }, | ||
|
|
||
| remove: function () { | ||
|
|
@@ -150,6 +148,7 @@ module.exports.Component = registerComponent('xr-mode-ui', { | |
| } else { | ||
| if (!utils.device.checkVRSupport()) { this.enterVREl.classList.add('fullscreen'); } | ||
| this.enterVREl.classList.remove(HIDDEN_CLASS); | ||
| sceneEl.enterVR(false, true); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should probably handle this a bit differently. Give control to the dev and decide if the page is auto-entering VR. Maybe a property in this component |
||
| } | ||
| }, | ||
|
|
||
|
|
@@ -161,6 +160,7 @@ module.exports.Component = registerComponent('xr-mode-ui', { | |
| this.enterAREl.classList.add(HIDDEN_CLASS); | ||
| } else { | ||
| this.enterAREl.classList.remove(HIDDEN_CLASS); | ||
| sceneEl.enterVR(true, true); | ||
| } | ||
| }, | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.