Reset rollo to page 0 when it's fully zoomed out.

This commit is contained in:
Joe Onorato
2009-09-28 14:37:53 -04:00
parent 0a8dc2cd98
commit 360d0353fd
3 changed files with 33 additions and 13 deletions
@@ -125,6 +125,7 @@ public class SwipeController {
mTracking = false;
mDownX = screenX;
mDownY = screenY;
mAllAppsView.setZoomSwipeInProgress(true, true);
break;
case MotionEvent.ACTION_MOVE:
@@ -132,6 +133,7 @@ public class SwipeController {
if (Math.abs(deltaX) > mSlop) {
mCanceled = true;
mTracking = false;
mAllAppsView.setZoomSwipeInProgress(false, true);
}
if (Math.abs(deltaY) > mSlop) {
mTracking = true;
@@ -146,6 +148,7 @@ public class SwipeController {
case MotionEvent.ACTION_UP:
if (mTracking && !mCanceled) {
fling(screenY);
mAllAppsView.setZoomSwipeInProgress(false, false);
}
mVelocityTracker.recycle();
mVelocityTracker = null;