Skip to content

Commit

Permalink
Dismiss only if mSwiping is true
Browse files Browse the repository at this point in the history
  • Loading branch information
markusrubey committed Jan 4, 2014
1 parent 612af43 commit 130fb6d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -151,7 +151,7 @@ public boolean onTouch(View view, MotionEvent motionEvent) {
float absVelocityY = Math.abs(mVelocityTracker.getYVelocity());
boolean dismiss = false;
boolean dismissRight = false;
if (Math.abs(deltaX) > mViewWidth / 2) {
if (Math.abs(deltaX) > mViewWidth / 2 && mSwiping) {
dismiss = true;
dismissRight = deltaX > 0;
} else if (mMinFlingVelocity <= absVelocityX && absVelocityX <= mMaxFlingVelocity
Expand Down

0 comments on commit 130fb6d

Please sign in to comment.