When changing numberOfDays, WeekView would continue to use an incorrect horizontal offset. Now, that offset is recalculated with the new day width, which means that firstVisibleDate will now stay consistent.
When scrolling in a multi-day view, onRangeChanged() was called for every day that was the first visible date during the scroll. Now, WeekView only calls onRangeChanged() once for the date that’s the first visible date once scrolling stopped.
Resolves: #211
This pull request fixes two issues:
numberOfDays
, WeekView would continue to use an incorrect horizontal offset. Now, that offset is recalculated with the new day width, which means thatfirstVisibleDate
will now stay consistent.onRangeChanged()
was called for every day that was the first visible date during the scroll. Now, WeekView only callsonRangeChanged()
once for the date that’s the first visible date once scrolling stopped.