Skip to content

Commit 3f5b7b1

Browse files
author
pera
committed
1 parent 6c1cc20 commit 3f5b7b1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/ButtonBarView.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ open class ButtonBarView: UICollectionView {
112112
targetContentOffset = fromContentOffset + ((toContentOffset - fromContentOffset) * progressPercentage)
113113
}
114114

115-
let animated = abs(contentOffset.x - targetContentOffset) > 30 || (fromIndex == toIndex)
116-
setContentOffset(CGPoint(x: targetContentOffset, y: 0), animated: animated)
115+
setContentOffset(CGPoint(x: targetContentOffset, y: 0), animated: false)
117116
}
118117

119118
open func updateSelectedBarPosition(_ animated: Bool, swipeDirection: SwipeDirection, pagerScroll: PagerScroll) -> Void {

0 commit comments

Comments
 (0)