This commit is contained in:
pera 2017-05-10 11:39:00 -03:00
parent 6c1cc20c9f
commit 3f5b7b103e
1 changed files with 1 additions and 2 deletions

View File

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