Skip to content

Commit

Permalink
Only ignore "Fast scrolling" when the offset is positive (fix #41 + fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sephiroth87 committed Nov 4, 2012
1 parent 48cd1d4 commit 279bc43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ODRefreshControl/ODRefreshControl.m
Expand Up @@ -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;
Expand Down

0 comments on commit 279bc43

Please sign in to comment.