diff --git a/Sources/ButtonBarView.swift b/Sources/ButtonBarView.swift index e4fabe8..8832aca 100644 --- a/Sources/ButtonBarView.swift +++ b/Sources/ButtonBarView.swift @@ -112,8 +112,7 @@ open class ButtonBarView: UICollectionView { targetContentOffset = fromContentOffset + ((toContentOffset - fromContentOffset) * progressPercentage) } - let animated = abs(contentOffset.x - targetContentOffset) > 30 || (fromIndex == toIndex) - setContentOffset(CGPoint(x: targetContentOffset, y: 0), animated: animated) + setContentOffset(CGPoint(x: targetContentOffset, y: 0), animated: false) } open func updateSelectedBarPosition(_ animated: Bool, swipeDirection: SwipeDirection, pagerScroll: PagerScroll) -> Void {