                         calculatedOffSet = scrollViewShouldStopAtEnd(calculatedOffSet) ? theTargetContentOffset : theTargetContentOffset - diffResistance
                         stopSection = calendarLayout.sectionFromOffset(calculatedOffSet)
                     } else {
-                        calculatedOffSet = scrollViewShouldStopAtBeginning() ? 0 : theTargetContentOffset + diffResistance
+                        calculatedOffSet = scrollViewShouldStopAtBeginning ? 0 : theTargetContentOffset + diffResistance
                         stopSection = calendarLayout.sectionFromOffset(calculatedOffSet)
                     }
                     let pathPoint = CGPoint( x: targetContentOffset.pointee.x, y: calculatedOffSet)

            }
        }
        
        let scrollViewShouldStopAtBeginning = {() -> Bool in
            return contentOffset < 0 && theTargetContentOffset == 0 ?
                true : false
        }
        let scrollViewShouldStopAtEnd = {
            (calculatedOffSet: CGFloat) -> Bool in
            return calculatedOffSet > contentSizeEndOffset
        }
        switch scrollingMode {
        case let .stopAtEach(customInterval: interval):

                }
                setTargetContentOffset(calculatedOffSet)
            case let .nonStopToCell(resistance):
                
                let diffResistance = diff * resistance
                if scrollDirection == .horizontal {
                    if scrollViewShouldStopAtBeginning {
                        calculatedOffSet = 0
                    } else if scrollViewShouldStopAtEnd(calculatedOffSet) {
                        calculatedOffSet = theTargetContentOffset
                    } else {
                        let interval = calendarLayout.cellCache[targetSection]![0].4
                        calculatedOffSet = recalculateOffset(diffResistance, interval)
                    }
                } else {
