Code correction

This commit is contained in:
Vlad 2020-08-18 15:50:27 +03:00
parent f84a5a643d
commit eb86d72394
1 changed files with 3 additions and 1 deletions

View File

@ -214,7 +214,9 @@ final public class PaginationWrapper<Cursor: ResettableRxDataSourceCursor, Deleg
removeInfiniteScroll { scrollView in
self.wrappedView.footerView = retryView
if scrollView.contentOffset.y + retryViewHeight >= self.bottom {
let shouldUpdateContentOffset = Int(scrollView.contentOffset.y + retryViewHeight) >= Int(self.bottom)
if shouldUpdateContentOffset {
let newContentOffset = CGPoint(x: 0, y: scrollView.contentOffset.y + retryViewHeight)
scrollView.setContentOffset(newContentOffset, animated: true)