Преглед на файлове

Merge pull request #20730 from cabanier/blurred-controller

WebXRController: Hide controller while system UI is up.
Mr.doob преди 4 години
родител
ревизия
6692211ba7
променени са 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 grip = this._grip;
 		const hand = this._hand;
 		const hand = this._hand;
 
 
-		if ( inputSource ) {
+		if ( inputSource && frame.session.visibilityState !== 'visible-blurred' ) {
 
 
 			if ( hand && inputSource.hand ) {
 			if ( hand && inputSource.hand ) {