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

Commit 91b4732

Browse files
author
grant
committed
animated 结束后回调
1 parent 6c91863 commit 91b4732

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
@@ -183,8 +183,8 @@ public class CollectionViewPagingLayout: UICollectionViewLayout {
183183
self.ignoreUpdateCurrentPage = false
184184
self.updateCurrentPageIfNeeded(basedOn: contentOffset)
185185
})
186-
CATransaction.commit()
187186
collectionView?.setContentOffset(contentOffset, animated: animated)
187+
CATransaction.commit()
188188

189189
}
190190
}

0 commit comments

Comments
 (0)