Skip to content

Commit b40c42f

Browse files
committed
Fix bug 2639949 - Don't stop a Scroller early
Change-Id: Ia827199a27d03289b6fa573dd6f2b13517943400
1 parent 81ac367 commit b40c42f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

core/java/android/widget/Scroller.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,6 @@ public boolean computeScrollOffset() {
203203

204204
mCurrX = mStartX + Math.round(x * mDeltaX);
205205
mCurrY = mStartY + Math.round(x * mDeltaY);
206-
if ((mCurrX == mFinalX) && (mCurrY == mFinalY)) {
207-
mFinished = true;
208-
}
209206
break;
210207
case FLING_MODE:
211208
float timePassedSeconds = timePassed / 1000.0f;
@@ -221,10 +218,6 @@ public boolean computeScrollOffset() {
221218
// Pin to mMinY <= mCurrY <= mMaxY
222219
mCurrY = Math.min(mCurrY, mMaxY);
223220
mCurrY = Math.max(mCurrY, mMinY);
224-
225-
if (mCurrX == mFinalX && mCurrY == mFinalY) {
226-
mFinished = true;
227-
}
228221

229222
break;
230223
}

0 commit comments

Comments
 (0)