Merge "Fix race condition that skips corner updates on half swipe"

This commit is contained in:
Lyn Han
2020-11-25 19:10:34 +00:00
committed by Android (Google) Code Review

View File

@@ -327,8 +327,8 @@ public class SwipeHelper implements Gefingerpoken {
if (Math.abs(delta) > pagingTouchSlop
&& Math.abs(delta) > Math.abs(deltaPerpendicular)) {
if (mCallback.canChildBeDragged(mTouchedView)) {
mCallback.onBeginDrag(mTouchedView);
mIsSwiping = true;
mCallback.onBeginDrag(mTouchedView);
mInitialTouchPos = getPos(ev);
mTranslation = getTranslation(mTouchedView);
}