* commit '4683041885e6a8338dc3111a9e3f15cc7c62611e': Fix small scrolling regression
This commit is contained in:
@@ -1368,10 +1368,13 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
|
||||
*/
|
||||
final int xDist = Math.abs(mScroller.getFinalX() - mScroller.getCurrX());
|
||||
final boolean finishedScrolling = (mScroller.isFinished() || xDist < mTouchSlop);
|
||||
|
||||
if (finishedScrolling) {
|
||||
mTouchState = TOUCH_STATE_REST;
|
||||
mScrollAbortedFromIntercept = true;
|
||||
abortScrollerAnimation(false);
|
||||
if (!mScroller.isFinished()) {
|
||||
mScrollAbortedFromIntercept = true;
|
||||
abortScrollerAnimation(false);
|
||||
}
|
||||
} else {
|
||||
if (isTouchPointInViewportWithBuffer((int) mDownMotionX, (int) mDownMotionY)) {
|
||||
mTouchState = TOUCH_STATE_SCROLLING;
|
||||
|
||||
Reference in New Issue
Block a user