Skip to content

Commit

Permalink
修复bug
Browse files Browse the repository at this point in the history
  • Loading branch information
teach committed May 20, 2021
1 parent 6e489e4 commit 4eac912
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -720,14 +720,15 @@ public boolean onTouchEvent(MotionEvent ev) {
mScrollConsumed[1] = 0;
int y = (int) ev.getY(pointerIndex);
int deltaY = mTouchY - y;
mTouchY = y;
if (dispatchNestedPreScroll(0, deltaY, mScrollConsumed, mScrollOffset, ViewCompat.TYPE_TOUCH)) {
deltaY -= mScrollConsumed[1];
ev.offsetLocation(0, mScrollOffset[1]);
mNestedYOffset += mScrollOffset[1];
mTouchY -= mScrollOffset[1];
getParent().requestDisallowInterceptTouchEvent(true);
}

mTouchY = y - mScrollOffset[1];
int oldScrollY = mSecondScrollY;

if (mScrollState != SCROLL_STATE_DRAGGING) {
Expand Down

0 comments on commit 4eac912

Please sign in to comment.