Fix bug 2639949 - Don't stop a Scroller early
Change-Id: Ia827199a27d03289b6fa573dd6f2b13517943400
This commit is contained in:
@@ -203,9 +203,6 @@ public class Scroller {
|
||||
|
||||
mCurrX = mStartX + Math.round(x * mDeltaX);
|
||||
mCurrY = mStartY + Math.round(x * mDeltaY);
|
||||
if ((mCurrX == mFinalX) && (mCurrY == mFinalY)) {
|
||||
mFinished = true;
|
||||
}
|
||||
break;
|
||||
case FLING_MODE:
|
||||
float timePassedSeconds = timePassed / 1000.0f;
|
||||
@@ -221,10 +218,6 @@ public class Scroller {
|
||||
// Pin to mMinY <= mCurrY <= mMaxY
|
||||
mCurrY = Math.min(mCurrY, mMaxY);
|
||||
mCurrY = Math.max(mCurrY, mMinY);
|
||||
|
||||
if (mCurrX == mFinalX && mCurrY == mFinalY) {
|
||||
mFinished = true;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user