Skip to content

Commit 89b5086

Browse files
author
pera
authored
Merge pull request xmartlabs#373 from xmartlabs/fix/issue-322
Fixes xmartlabs#322
2 parents 2089092 + 3f5b7b1 commit 89b5086

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)