ソースを参照

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

Rik Cabanier 4 年 前
コミット
0349564804
1 ファイル変更1 行追加1 行削除
  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 ) {