fixed issue with hiding navBar

fixed issue with hiding navBar when scroll/table view in bottom position
This commit is contained in:
Andrii Novoselskyi 2014-10-29 16:04:08 +02:00
parent 735c8181fa
commit 85c696fcd9
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);
}