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