         
       } else {
         UIView.performWithoutAnimation {
-          collectionView.performBatchUpdates({
-            self.collectionView.deleteItems(at: [IndexPath.init(item: index, section: 0)])
+          performBatchUpdates({
+            self.deleteItems(at: [IndexPath(item: index, section: 0)])
           }, completion: nil)
         }
       }

    }
  }
}

private class InternalCollectionView: UICollectionView {
  
  open override func touchesShouldCancel(in view: UIView) -> Bool {
    return true
  }
}


import UIKit

open class StackScrollView: UICollectionView, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout {
  
  private enum LayoutKeys {
    static let top = "me.muukii.StackScrollView.top"
