Skip to content

Commit

Permalink
Closes pier-oliviert#2. The state weren't cancelled if the user stopp…
Browse files Browse the repository at this point in the history
…ed dragging in the middle of the state
  • Loading branch information
pier-oliviert committed Jan 13, 2012
1 parent 74a6b78 commit 5b71e41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PHRefreshGestureRecognizer/PHRefreshGestureRecognizer.m
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
if (self.refreshState == PHRefreshTriggered) {
self.refreshState = PHRefreshLoading;
self.state = UIGestureRecognizerStateRecognized;
} else {
self.state = UIGestureRecognizerStateCancelled;
self.refreshState = PHRefreshIdle;
}
}

Expand Down

0 comments on commit 5b71e41

Please sign in to comment.