Permalink
Browse files

check if fake drag is running in SwipeyTabsView, fixes #3

  • Loading branch information...
1 parent 1b886d3 commit 614de55b98edb60b7f84553cd7c972f509cf8081 @astuetz astuetz committed Apr 18, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/com/astuetz/viewpager/extensions/SwipeyTabsView.java
@@ -513,10 +513,12 @@ public boolean onTouch(View v, MotionEvent event) {
mPager.beginFakeDrag();
break;
case MotionEvent.ACTION_MOVE:
+ if (!mPager.isFakeDragging()) break;
mPager.fakeDragBy((mDragX - x) * (-1));
mDragX = x;
break;
case MotionEvent.ACTION_UP:
+ if (!mPager.isFakeDragging()) break;
mPager.endFakeDrag();
break;
}

0 comments on commit 614de55

Please sign in to comment.