Using velocity tracker for computing the velocity of motion events

Change-Id: I14f2f970825a2936f4bb285834405d67daf8667c
This commit is contained in:
Sunny Goyal committed 2018-09-13 09:50:47 -07:00
1 parent 05b351dd42
commit 4d8ec15fb5
6 files changed
+64 -79

No files matched your search

@@ -179,7 +179,7 @@ public class NotificationMainView extends FrameLayout implements SwipeDetector.L
@Override
public boolean onDrag(float displacement, float velocity) {
public boolean onDrag(float displacement) {
setContentTranslation(canChildBeDismissed()
? displacement : OverScroll.dampedScroll(displacement, getWidth()));
mContentTranslateAnimator.cancel();