Browse Source

OrbitControls: pause autoRotate during user interaction

Christian Moritz 10 years ago
parent
commit
c04c72c827
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/controls/OrbitControls.js

+ 1 - 1
examples/js/controls/OrbitControls.js

@@ -256,7 +256,7 @@ THREE.OrbitControls = function ( object, domElement ) {
 
 		phi = Math.atan2( Math.sqrt( offset.x * offset.x + offset.z * offset.z ), offset.y );
 
-		if ( this.autoRotate ) {
+		if ( this.autoRotate && state === STATE.NONE ) {
 
 			this.rotateLeft( getAutoRotationAngle() );