Browse Source

Merge pull request #7422 from shshaw/patch-2

Removed unnecessary touchZoomDistance resets
Mr.doob 9 years ago
parent
commit
7352e15f92
1 changed files with 0 additions and 2 deletions
  1. 0 2
      examples/js/controls/TrackballControls.js

+ 0 - 2
examples/js/controls/TrackballControls.js

@@ -561,12 +561,10 @@ THREE.TrackballControls = function ( object, domElement ) {
 
 
 			case 0:
 			case 0:
 				_state = STATE.NONE;
 				_state = STATE.NONE;
-				_touchZoomDistanceStart = _touchZoomDistanceEnd = 0;
 				break;
 				break;
 
 
 			case 1:
 			case 1:
 				_state = STATE.TOUCH_ROTATE;
 				_state = STATE.TOUCH_ROTATE;
-				_touchZoomDistanceStart = _touchZoomDistanceEnd = 0;
 				_moveCurr.copy( getMouseOnCircle( event.touches[ 0 ].pageX, event.touches[ 0 ].pageY ) );
 				_moveCurr.copy( getMouseOnCircle( event.touches[ 0 ].pageX, event.touches[ 0 ].pageY ) );
 				_movePrev.copy( _moveCurr );
 				_movePrev.copy( _moveCurr );
 				break;
 				break;