From e42aaec8db58223640feea22a197f775fcf5d526 Mon Sep 17 00:00:00 2001 From: "Tondapu, Alekhya" Date: Fri, 23 Jul 2021 22:21:08 +0530 Subject: [PATCH] Reverted index code changes in didSelect --- MVMCoreUI/Atomic/Organisms/Carousel/Carousel.swift | 3 --- 1 file changed, 3 deletions(-) diff --git a/MVMCoreUI/Atomic/Organisms/Carousel/Carousel.swift b/MVMCoreUI/Atomic/Organisms/Carousel/Carousel.swift index 9b1d7b54..8c690b3c 100644 --- a/MVMCoreUI/Atomic/Organisms/Carousel/Carousel.swift +++ b/MVMCoreUI/Atomic/Organisms/Carousel/Carousel.swift @@ -429,9 +429,6 @@ extension Carousel: UICollectionViewDelegate { adjustedIndex = adjustedIndex + numberOfPages } model.selectedIndex = adjustedIndex - currentIndex = adjustedIndex - pagingView?.currentIndex = adjustedIndex - updateModelIndex() } if let cell = collectionView.cellForItem(at: indexPath) as? CollectionTemplateItemProtocol { cell.didSelectCell(at: indexPath, delegateObject: delegateObject, additionalData: nil)