avoid glitching when end time is too close to start time
This commit is contained in:
parent
3b41a33202
commit
e387e19fd1
|
@ -76,6 +76,8 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
|||
val bounds = Rect()
|
||||
week_events_holder.getGlobalVisibleRect(bounds)
|
||||
maxScrollY -= bounds.bottom - bounds.top
|
||||
if (minScrollY > maxScrollY)
|
||||
maxScrollY = -1
|
||||
|
||||
checkScrollLimits(mView.week_events_scrollview.scrollY)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue