|
@@ -780,8 +780,8 @@ module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
private _onFullscreenChange = () => {
|
|
private _onFullscreenChange = () => {
|
|
- if (document.fullscreen !== undefined) {
|
|
|
|
- this._fullscreenVRpresenting = document.fullscreen;
|
|
|
|
|
|
+ if ((<any>document).fullscreen !== undefined) {
|
|
|
|
+ this._fullscreenVRpresenting = (<any>document).fullscreen;
|
|
} else if (document.mozFullScreen !== undefined) {
|
|
} else if (document.mozFullScreen !== undefined) {
|
|
this._fullscreenVRpresenting = document.mozFullScreen;
|
|
this._fullscreenVRpresenting = document.mozFullScreen;
|
|
} else if (document.webkitIsFullScreen !== undefined) {
|
|
} else if (document.webkitIsFullScreen !== undefined) {
|
|
@@ -814,7 +814,7 @@ module BABYLON {
|
|
this._webVRpresenting = vrDisplay.isPresenting;
|
|
this._webVRpresenting = vrDisplay.isPresenting;
|
|
|
|
|
|
if (wasPresenting && !this._webVRpresenting) {
|
|
if (wasPresenting && !this._webVRpresenting) {
|
|
- this.exitVR();
|
|
|
|
|
|
+ this.exitVR();
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
Tools.Warn('Detected VRDisplayPresentChange on an unknown VRDisplay. Did you can enterVR on the vrExperienceHelper?');
|
|
Tools.Warn('Detected VRDisplayPresentChange on an unknown VRDisplay. Did you can enterVR on the vrExperienceHelper?');
|
|
@@ -880,7 +880,7 @@ module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
if (this._webVRrequesting) {
|
|
if (this._webVRrequesting) {
|
|
- return;
|
|
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
|
|
|
|
// If WebVR is supported and a headset is connected
|
|
// If WebVR is supported and a headset is connected
|