Explorar o código

Merge pull request #6906 from BabylonJS/orientation-fullscreen-button

Update vrExperienceHelper.ts
David Catuhe %!s(int64=5) %!d(string=hai) anos
pai
achega
dc483a11b9
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/Cameras/VR/vrExperienceHelper.ts

+ 2 - 0
src/Cameras/VR/vrExperienceHelper.ts

@@ -916,6 +916,8 @@ export class VRExperienceHelper {
             if (!this._useCustomVRButton && this._btnVR) {
                 this._btnVR.style.top = this._canvas.offsetTop + this._canvas.offsetHeight - 70 + "px";
                 this._btnVR.style.left = this._canvas.offsetLeft + this._canvas.offsetWidth - 100 + "px";
+                // make sure the button is visible after setting its position
+                this.updateButtonVisibility();
             }
         }
     }