Permalink
Browse files

Only ignore "Fast scrolling" when the offset is positive (fix #41 + fix

  • Loading branch information...
1 parent 48cd1d4 commit 279bc43da2b4716169e9c471dcbf08aef468a58c @Sephiroth87 committed Nov 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ODRefreshControl/ODRefreshControl.m
@@ -242,7 +242,7 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N
dontDraw = YES;
}
}
- if (_lastOffset > offset && !self.scrollView.isTracking) {
+ if (offset > 0 && _lastOffset > offset && !self.scrollView.isTracking) {
// If we are scrolling too fast, don't draw, and don't trigger unless the scrollView bounced back
_canRefresh = NO;
dontDraw = YES;

0 comments on commit 279bc43

Please sign in to comment.