Ver Fonte

Revert "Added "controllermove" event to WebXRController (#20790)" (#21698)

This reverts commit 1578a2f5e8b5b49e9ffbf0bdbd8bf02abdde01bf.
Mr.doob há 4 anos atrás
pai
commit
f027db2a65
1 ficheiros alterados com 0 adições e 6 exclusões
  1. 0 6
      src/renderers/webxr/WebXRController.js

+ 0 - 6
src/renderers/webxr/WebXRController.js

@@ -218,24 +218,18 @@ class WebXRController {
 
 			targetRay.visible = ( inputPose !== null );
 
-			if ( targetRay.visible ) targetRay.dispatchEvent( { type: 'controllermove' } );
-
 		}
 
 		if ( grip !== null ) {
 
 			grip.visible = ( gripPose !== null );
 
-			if ( grip.visible ) grip.dispatchEvent( { type: 'controllermove' } );
-
 		}
 
 		if ( hand !== null ) {
 
 			hand.visible = ( handPose !== null );
 
-			if ( hand.visible ) hand.dispatchEvent( { type: 'controllermove' } );
-
 		}
 
 		return this;