Browse Source

Merge pull request #20730 from cabanier/blurred-controller

WebXRController: Hide controller while system UI is up.
Mr.doob 4 years ago
parent
commit
6692211ba7
1 changed files with 1 additions and 1 deletions
  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 ) {