Skip to content

Commit

Permalink
Fix issue andreamazz#65
Browse files Browse the repository at this point in the history
  • Loading branch information
andreamazz committed Aug 12, 2014
1 parent 67c4378 commit dfc4441
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion AMScrollingNavbar/UIViewController+ScrollingNavbar.m
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ - (void)scrollWithDelta:(CGFloat)delta
}
// Prevents the navbar from moving during the 'rubberband' scroll
if ([self contentoffset].y + self.scrollableView.frame.size.height > [self contentSize].height) {
return;
if (self.scrollableView.frame.size.height < [self contentSize].height) { // Only if the content is big enough
return;
}
}
if (self.collapsed) {
self.collapsed = NO;
Expand Down

0 comments on commit dfc4441

Please sign in to comment.