Skip to content
This repository was archived by the owner on Jun 17, 2023. It is now read-only.

Commit 88f07d2

Browse files
author
grant
committed
no need here, always calc by bounds change
1 parent 00441e6 commit 88f07d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/CollectionViewPagingLayout.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,6 @@ public class CollectionViewPagingLayout: UICollectionViewLayout {
175175
offset = min(offset, maxPossibleOffset)
176176
let contentOffset: CGPoint = scrollDirection == .horizontal ? CGPoint(x: offset, y: 0) : CGPoint(x: 0, y: offset)
177177
collectionView?.setContentOffset(contentOffset, animated: animated)
178-
updateCurrentPageIfNeeded(basedOn: contentOffset)
178+
//updateCurrentPageIfNeeded(basedOn: contentOffset)
179179
}
180180
}

0 commit comments

Comments
 (0)