Using velocity tracker for computing the velocity of motion events

Change-Id: I14f2f970825a2936f4bb285834405d67daf8667c
This commit is contained in:
Sunny Goyal
2018-09-12 15:47:06 -07:00
parent 05b351dd42
commit 4d8ec15fb5
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);