File tree Expand file tree Collapse file tree 3 files changed +498
-21
lines changed Expand file tree Collapse file tree 3 files changed +498
-21
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ class AScene extends AEntity {
116
116
this . pointerRestrictedBound = function ( ) { self . pointerRestricted ( ) ; } ;
117
117
this . pointerUnrestrictedBound = function ( ) { self . pointerUnrestricted ( ) ; } ;
118
118
119
- if ( ! isWebXRAvailable ) {
119
+ if ( ! self . hasWebXR ) {
120
120
// Exit VR on `vrdisplaydeactivate` (e.g. taking off Rift headset).
121
121
window . addEventListener ( 'vrdisplaydeactivate' , this . exitVRBound ) ;
122
122
@@ -355,7 +355,7 @@ class AScene extends AEntity {
355
355
}
356
356
self . emit ( 'enter-vr' , { target : self } ) ;
357
357
// Lock to landscape orientation on mobile.
358
- if ( ! isWebXRAvailable && self . isMobile && screen . orientation && screen . orientation . lock ) {
358
+ if ( ! self . hasWebXR && self . isMobile && screen . orientation && screen . orientation . lock ) {
359
359
screen . orientation . lock ( 'landscape' ) ;
360
360
}
361
361
self . addFullScreenStyles ( ) ;
Original file line number Diff line number Diff line change @@ -37,9 +37,11 @@ setup(function () {
37
37
getDevice : function ( ) { return { requestPresent : function ( ) { } } ; } ,
38
38
isPresenting : function ( ) { return true ; } ,
39
39
setDevice : function ( ) { } ,
40
+ setSession : function ( ) { return Promise . resolve ( ) ; } ,
40
41
setFoveation : function ( ) { } ,
41
42
setPoseTarget : function ( ) { } ,
42
43
dispose : function ( ) { } ,
44
+ setReferenceSpaceType : function ( ) { } ,
43
45
enabled : false
44
46
} ,
45
47
dispose : function ( ) { } ,
You can’t perform that action at this time.
0 commit comments