     var nextPageStartX: CGFloat = 0
     var previousPageStartX: CGFloat = 0
     
-//    // For candidates table scroll
-//    var nextPageStartY: CGFloat = 0
-//    var previousPageStartY: CGFloat = 0
-    
     func scrollViewWillBeginDragging(scrollView: UIScrollView) {
 
         let collectionView = scrollView as UICollectionView

        if scrollView.isKindOfMyCollectionViewFlowLayout() == false {    // For candidates table scroll
            
            return
            
//            assert(previousPageStartY < nextPageStartY, "Calculate wrong pages start")
//            if targetContentOffset.memory.y > nextPageStartY {
//                targetContentOffset.memory.y = nextPageStartY
//            }
//            if targetContentOffset.memory.y < previousPageStartY {
//                targetContentOffset.memory.y = previousPageStartY
//            }
            
        } else {    // For candidates banner scroll
            

            
            return
            
        } else {    // For candidates banner scroll
        
            var mostLeftCellIndexPathRow = visibleItems.reduce(Int.max) {
                min($0, $1.row)
            }
            
            var mostRightCellIndexPathRow = visibleItems.reduce(Int.min) {
                max($0, $1.row)
            }
            
            var mostLeftCellIndexPath = NSIndexPath(forItem: mostLeftCellIndexPathRow, inSection: 0)
            var mostRightCellIndexPath = NSIndexPath(forItem: mostRightCellIndexPathRow, inSection: 0)
