Skip to content

Commit

Permalink
Fix: Rounding error gave incorrect section of cell
Browse files Browse the repository at this point in the history
  • Loading branch information
patchthecode committed Nov 6, 2017
1 parent 576b97e commit c405914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/InternalQueryFunctions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c405914

Please sign in to comment.