Skip to content

Commit

Permalink
Fix for animation bug in setCurrentPageIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
bizz84 committed Jan 9, 2016
1 parent aef4dda commit b6a0ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MVCarouselCollectionView/MVCarouselCollectionView.swift
Expand Up @@ -172,7 +172,7 @@ public class MVCarouselCollectionView: UICollectionView, UICollectionViewDataSou
self.clientDidRequestScroll = true;

let indexPath = NSIndexPath(forRow: currentPageIndex, inSection: 0)
self.scrollToItemAtIndexPath(indexPath, atScrollPosition:UICollectionViewScrollPosition.CenteredHorizontally, animated:true)
self.scrollToItemAtIndexPath(indexPath, atScrollPosition:UICollectionViewScrollPosition.CenteredHorizontally, animated: animated)
}


Expand Down

0 comments on commit b6a0ac1

Please sign in to comment.