Kaynağa Gözat

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

Rik Cabanier 4 yıl önce
ebeveyn
işleme
0349564804
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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 ) {