Skip to content

Commit

Permalink
Snap to destination if touch event is canceled. Closes pakerfeldt#38
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Åkerfeldt <[email protected]>
  • Loading branch information
pakerfeldt committed Aug 16, 2011
1 parent b4063cd commit 1aebd81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions viewflow/src/org/taptwo/android/widget/ViewFlow.java
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ && mCurrentScreen < getChildCount() - 1) {

break;
case MotionEvent.ACTION_CANCEL:
snapToDestination();
mTouchState = TOUCH_STATE_REST;
}
return true;
Expand Down

0 comments on commit 1aebd81

Please sign in to comment.