Merge "Fix a bug that could cause flings to last too long using a Scroller" into gingerbread
This commit is contained in:
@@ -218,7 +218,11 @@ public class Scroller {
|
|||||||
// Pin to mMinY <= mCurrY <= mMaxY
|
// Pin to mMinY <= mCurrY <= mMaxY
|
||||||
mCurrY = Math.min(mCurrY, mMaxY);
|
mCurrY = Math.min(mCurrY, mMaxY);
|
||||||
mCurrY = Math.max(mCurrY, mMinY);
|
mCurrY = Math.max(mCurrY, mMinY);
|
||||||
|
|
||||||
|
if (mCurrX == mFinalX && mCurrY == mFinalY) {
|
||||||
|
mFinished = true;
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user