mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
avoid glitching when end time is too close to start time
This commit is contained in:
@@ -76,6 +76,8 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
|||||||
val bounds = Rect()
|
val bounds = Rect()
|
||||||
week_events_holder.getGlobalVisibleRect(bounds)
|
week_events_holder.getGlobalVisibleRect(bounds)
|
||||||
maxScrollY -= bounds.bottom - bounds.top
|
maxScrollY -= bounds.bottom - bounds.top
|
||||||
|
if (minScrollY > maxScrollY)
|
||||||
|
maxScrollY = -1
|
||||||
|
|
||||||
checkScrollLimits(mView.week_events_scrollview.scrollY)
|
checkScrollLimits(mView.week_events_scrollview.scrollY)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user