carousel loop fix
This commit is contained in:
parent
b7edafc5d8
commit
4cac288e5b
@ -294,7 +294,7 @@ extension Carousel: UIScrollViewDelegate {
|
||||
return
|
||||
}
|
||||
|
||||
let lastPageIndex = numberOfPages + 1
|
||||
let lastPageIndex = numberOfPages + 2
|
||||
let goToIndex = {(index: Int) in
|
||||
self.goTo(index, animated: false)
|
||||
self.collectionView.layoutIfNeeded()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user