Skip to content

Commit

Permalink
Hide VR button in desktop mode on iPad (fix #4814) (#5191)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin authored Dec 26, 2022
1 parent e5bf9e0 commit cd38d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/scene/vr-mode-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ module.exports.Component = registerComponent('vr-mode-ui', {
var sceneEl = this.el;
if (!this.enterVREl) { return; }
if (sceneEl.is('vr-mode') ||
(sceneEl.isMobile && !this.data.cardboardModeEnabled && !utils.device.checkVRSupport())) {
((sceneEl.isMobile || utils.device.isMobileDeviceRequestingDesktopSite()) && !this.data.cardboardModeEnabled && !utils.device.checkVRSupport())) {
this.enterVREl.classList.add(HIDDEN_CLASS);
} else {
if (!utils.device.checkVRSupport()) { this.enterVREl.classList.add('fullscreen'); }
Expand Down

0 comments on commit cd38d4b

Please sign in to comment.