         // delegate will not get called. Once animation is on let's force a scroll so the delegate MUST get caalled
         
         let theOffset = direction == .Horizontal ? offset.x : offset.y
-        let sectionForOffset = Int(theOffset / calendarView.frame.width)
+        let divValue = direction == .Horizontal ? calendarView.frame.width : calendarView.frame.height
+        let sectionForOffset = Int(theOffset / divValue)
+        let calendarCurrentOffset = direction == .Horizontal ? calendarView.contentOffset.x : calendarView.contentOffset.y
         if
-            self.calendarView.contentOffset.x == offset.x ||
+            calendarCurrentOffset == theOffset ||
             (self.pagingEnabled && (sectionForOffset ==  currentSectionPage)){
             retval = true
         } else {

                    }
                    // If delegate triggering is enabled, let the delegate function handle the cell
                    if triggerSelectionDelegate {
                        self.collectionView(self.calendarView, didDeselectItemAtIndexPath: indexPath)
                    } else { // Although we do not want the delegate triggered, we still want counterpart cells to be deselected
                        let cellState = self.cellStateFromIndexPath(sectionIndexPath, withDate: date)
                        if let anUnselectedCounterPartIndexPath = self.deselectCounterPartCellIndexPath(indexPath, date: date, dateOwner: cellState.dateBelongsTo) {
                            // ONLY if the counterPart cell is visible, then we need to inform the delegate
                            self.refreshIndexPathIfVisible(anUnselectedCounterPartIndexPath)
                        }
                    }
                }

    /// Reload the date of specified date-cells on the calendar-view
    /// - Parameter dates: Date-cells with these specified dates will be reloaded
    public func reloadDates(dates: [NSDate]) {
        reloadIndexPathsIfVisible(pathsFromDates(dates))
    }
    
    /// Select a date-cell if it is on screen
