diff --git a/Sources/InternalQueryFunctions.swift b/Sources/InternalQueryFunctions.swift index 170da90f..9c724b08 100644 --- a/Sources/InternalQueryFunctions.swift +++ b/Sources/InternalQueryFunctions.swift @@ -62,7 +62,7 @@ extension JTAppleCalendarView { break } - let section = CGFloat(Int(theTargetContentOffset / fixedScrollSize)) + let section = CGFloat(round(theTargetContentOffset / fixedScrollSize)) let destinationRectOffset = (fixedScrollSize * section) var x: CGFloat = 0 var y: CGFloat = 0