Explorar o código

Added check for WebXR blurred state so we don't show frozen controller while showing system UI

Rik Cabanier %!s(int64=4) %!d(string=hai) anos
pai
achega
0349564804
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/renderers/webxr/WebXRController.js

+ 1 - 1
src/renderers/webxr/WebXRController.js

@@ -133,7 +133,7 @@ Object.assign( WebXRController.prototype, {
 		const grip = this._grip;
 		const hand = this._hand;
 
-		if ( inputSource ) {
+		if ( inputSource && frame.session.visibilityState !== 'visible-blurred' ) {
 
 			if ( hand && inputSource.hand ) {