Fixing jump when swiping up because startDisplacement was getting reset in the middle
Change-Id: I6b8be9505ec2bd22bbc76efe81b6f00231645267
This commit is contained in:
parent
989732be57
commit
e0c5f5d0ab
|
@ -397,8 +397,10 @@ public class OtherActivityTouchConsumer extends ContextWrapper implements TouchC
|
|||
// touch slop
|
||||
startTouchTrackingForWindowAnimation(ev.getEventTime());
|
||||
}
|
||||
mPassedInitialSlop = true;
|
||||
mStartDisplacement = getDisplacement(ev);
|
||||
if (!mPassedInitialSlop) {
|
||||
mPassedInitialSlop = true;
|
||||
mStartDisplacement = getDisplacement(ev);
|
||||
}
|
||||
notifyGestureStarted();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue