Fixing jump when swiping up because startDisplacement was getting reset in the middle

Change-Id: I6b8be9505ec2bd22bbc76efe81b6f00231645267
This commit is contained in:
Sunny Goyal 2019-01-28 13:02:22 -08:00
parent 989732be57
commit e0c5f5d0ab
1 changed files with 4 additions and 2 deletions

View File

@ -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();
}