From eb86d723948c3609d0a127c4ca64a36b0abdc626 Mon Sep 17 00:00:00 2001 From: Vlad Date: Tue, 18 Aug 2020 15:50:27 +0300 Subject: [PATCH] Code correction --- .../DataLoading/PaginationDataLoading/PaginationWrapper.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)