thellmund / Android-Week-View

Display highly customizable calendar views in your Android app
Apache License 2.0
188 stars 98 forks source link

Fix bugs around scrolling and behavior of onRangeChanged() #215

Closed thellmund closed 3 years ago

thellmund commented 3 years ago

Resolves: #211

This pull request fixes two issues:

  1. 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.
  2. 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.
dsounded commented 3 years ago

@thellmund you are the man, thanks!)