am 25e99ce6: am 043d7a94: am 12b1b8ed: am 026e204e: Fixes velocity tracking bug in SwipeDismissLayout.
* commit '25e99ce6d6e3191282a08b115d4b703277d19cd1': Fixes velocity tracking bug in SwipeDismissLayout.
This commit is contained in:
@@ -216,6 +216,8 @@ public class SwipeDismissLayout extends FrameLayout {
|
|||||||
if (mVelocityTracker == null) {
|
if (mVelocityTracker == null) {
|
||||||
return super.onTouchEvent(ev);
|
return super.onTouchEvent(ev);
|
||||||
}
|
}
|
||||||
|
// offset because the view is translated during swipe
|
||||||
|
ev.offsetLocation(mTranslationX, 0);
|
||||||
switch (ev.getActionMasked()) {
|
switch (ev.getActionMasked()) {
|
||||||
case MotionEvent.ACTION_UP:
|
case MotionEvent.ACTION_UP:
|
||||||
updateDismiss(ev);
|
updateDismiss(ev);
|
||||||
|
|||||||
Reference in New Issue
Block a user