Allow EdgeEffect to fling during pull
Bug: 186430321 EdgeEffect was restarting the fling from the start if onAbsorb() was called after onPullDistance(). This CL does not reset the distance in onAbsorb(). Test: new test Change-Id: I0657059c275f42cfe229a3aaa8bf37c87e0394f1
This commit is contained in:
@@ -442,7 +442,6 @@ public class EdgeEffect {
|
||||
if (mEdgeEffectType == TYPE_STRETCH) {
|
||||
mState = STATE_RECEDE;
|
||||
mVelocity = velocity * ON_ABSORB_VELOCITY_ADJUSTMENT;
|
||||
mDistance = 0;
|
||||
mStartTime = AnimationUtils.currentAnimationTimeMillis();
|
||||
} else {
|
||||
mState = STATE_ABSORB;
|
||||
|
||||
Reference in New Issue
Block a user