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