Skip to content

Commit

Permalink
Merge pull request #7422 from shshaw/patch-2
Browse files Browse the repository at this point in the history
Removed unnecessary touchZoomDistance resets
  • Loading branch information
mrdoob committed Oct 23, 2015
2 parents fcb5c05 + 34fff87 commit 7352e15
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions examples/js/controls/TrackballControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,12 +561,10 @@ THREE.TrackballControls = function ( object, domElement ) {

case 0:
_state = STATE.NONE;
_touchZoomDistanceStart = _touchZoomDistanceEnd = 0;
break;

case 1:
_state = STATE.TOUCH_ROTATE;
_touchZoomDistanceStart = _touchZoomDistanceEnd = 0;
_moveCurr.copy( getMouseOnCircle( event.touches[ 0 ].pageX, event.touches[ 0 ].pageY ) );
_movePrev.copy( _moveCurr );
break;
Expand Down

0 comments on commit 7352e15

Please sign in to comment.