 import UIKit
 
 class InfiniteCarousel: UICollectionView, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout {
-    @IBInspectable var buffer = 3
+    @IBInspectable var buffer = 5
     
     var count = 0
     

        return (from: from, to: to)
    }
    
    func debugFocusChange(context: UIFocusUpdateContext) -> String {
        let (from, to) = self.convertToIndexPaths(context)
        return "from \(from?.item ?? -1) to \(to?.item ?? 0) heading \(context.focusHeading == .Right ? "right" : "left")"
    }
    
    func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
        count = rootDataSource.collectionView(collectionView, numberOfItemsInSection: section)
        return count + 2 * buffer

    
    var lastOffset: CGFloat = 0
    func scrollViewDidScroll(scrollView: UIScrollView) {
        guard let jumpIndex = jumpFromIndex else {
            return
        }
