updated scroll animation to true

This commit is contained in:
Vasavi Kanamarlapudi 2024-07-19 20:54:03 +05:30
parent 7c431974ac
commit afc4d71f38

View File

@ -541,7 +541,7 @@ open class Carousel: View {
}
carouselScrollBar.scrubberId = position+1
let yPos = scrollView.contentOffset.y
scrollView.setContentOffset(CGPoint(x: xPos, y: yPos), animated: false)
scrollView.setContentOffset(CGPoint(x: xPos, y: yPos), animated: true)
showPaginationControls()
groupIndex = position-1
onChangePublisher.send(groupIndex)