diff --git a/Sources/Classes/DataLoading/PaginationDataLoading/PaginationWrapper.swift b/Sources/Classes/DataLoading/PaginationDataLoading/PaginationWrapper.swift index 39ecfe04..3ce5984d 100644 --- a/Sources/Classes/DataLoading/PaginationDataLoading/PaginationWrapper.swift +++ b/Sources/Classes/DataLoading/PaginationDataLoading/PaginationWrapper.swift @@ -214,7 +214,9 @@ final public class PaginationWrapper= 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)