Merge "Using velocity tracker for computing the velocity of motion events" into ub-launcher3-master

This commit is contained in:
Sunny Goyal
2018-09-25 21:15:26 +00:00
committed by Android (Google) Code Review
6 changed files with 64 additions and 79 deletions

View File

@@ -256,7 +256,7 @@ public abstract class AbstractStateChangeTouchController
}
@Override
public boolean onDrag(float displacement, float velocity) {
public boolean onDrag(float displacement) {
float deltaProgress = mProgressMultiplier * (displacement - mDisplacementShift);
float progress = deltaProgress + mStartProgress;
updateProgress(progress);