浏览代码

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 ) {