Merge "Fix a bug that could cause flings to last too long using a Scroller" into gingerbread

This commit is contained in:
Adam Powell
2010-07-28 16:56:13 -07:00
committed by Android (Google) Code Review

View File

@@ -218,7 +218,11 @@ 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;
}
}