Merge "Set mNextPage after springBack when overscrolling" into ub-launcher3-qt-dev
am: 3bd876ba90
Change-Id: Iad33d88a6a4e3e8635c04dd28b7bd268852f0130
This commit is contained in:
@@ -1204,6 +1204,7 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
|
||||
if (((initialScrollX >= mMaxScrollX) && (isVelocityXLeft || !isFling)) ||
|
||||
((initialScrollX <= mMinScrollX) && (!isVelocityXLeft || !isFling))) {
|
||||
mScroller.springBack(getScrollX(), mMinScrollX, mMaxScrollX);
|
||||
mNextPage = getPageNearestToCenterOfScreen();
|
||||
} else {
|
||||
mScroller.setInterpolator(mDefaultInterpolator);
|
||||
mScroller.fling(initialScrollX, -velocityX,
|
||||
|
||||
Reference in New Issue
Block a user