temporary fix loop

This commit is contained in:
Pfeil, Scott Robert 2020-04-09 11:37:22 -04:00
parent 4cac288e5b
commit 4eb4cf9741

View File

@ -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)