temporary fix loop
This commit is contained in:
parent
4cac288e5b
commit
4eb4cf9741
@ -294,7 +294,7 @@ extension Carousel: UIScrollViewDelegate {
|
||||
return
|
||||
}
|
||||
|
||||
let lastPageIndex = numberOfPages + 2
|
||||
let lastPageIndex = numberOfPages + 1
|
||||
let goToIndex = {(index: Int) in
|
||||
self.goTo(index, animated: false)
|
||||
self.collectionView.layoutIfNeeded()
|
||||
@ -332,7 +332,7 @@ extension Carousel: UIScrollViewDelegate {
|
||||
open func scrollViewDidScroll(_ scrollView: UIScrollView) {
|
||||
|
||||
// Check if the user is dragging the card even further past the next card.
|
||||
checkForDraggingOutOfBounds(scrollView)
|
||||
//checkForDraggingOutOfBounds(scrollView)
|
||||
|
||||
// Let the pager know our progress if needed.
|
||||
pagingView?.scrollViewDidScroll?(collectionView)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user