Reverted index code changes in didSelect

This commit is contained in:
Tondapu, Alekhya 2021-07-23 22:21:08 +05:30
parent 64e11e8f7a
commit e42aaec8db

View File

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