Merge pull request #38 from anovoselskyi/master

fixed issue with hiding navBar
This commit is contained in:
Mazyad Alabduljaleel 2014-11-06 16:17:54 +04:00
commit b1bee69762
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ static inline CGFloat AACStatusBarHeight()
/* rounding to resolve a dumb issue with the contentOffset value */
CGFloat end = floorf(self.scrollView.contentSize.height - CGRectGetHeight(self.scrollView.bounds) + self.scrollView.contentInset.bottom - 0.5f);
if (self.previousYOffset > end)
if (self.previousYOffset > end && deltaY > 0)
{
deltaY = MAX(0, deltaY - self.previousYOffset + end);
}