You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If calendar contentInset.top != 0, it is not scrolled to top
Steps To Reproduce
Change contentInset top value.
Initially contentOffset of calendar is correct, after scrolling calendar can't be scrolled to top.
In scrollViewWillEndDragging method setTargetContentOffset(0) is called and prevent further scrolling.
If contentInset.top != 0, minimum contentOffset may be negative value, so setting it to 0 is wrong.
Expected Behavior
Calendar can be scrolled to top.
Additional Context
Locally I fixed this bug with patch by changing code in JTACScrollViewDelegates from this:
if theCurrentContentOffset <= 0 { setTargetContentOffset(0); return }
to this:
if theCurrentContentOffset <= -scrollView.contentInset.top { setTargetContentOffset(-scrollView.contentInset.top); return }
The text was updated successfully, but these errors were encountered:
version: 8.0.3
Description
If calendar contentInset.top != 0, it is not scrolled to top
Steps To Reproduce
Change contentInset top value.
Initially contentOffset of calendar is correct, after scrolling calendar can't be scrolled to top.
In scrollViewWillEndDragging method setTargetContentOffset(0) is called and prevent further scrolling.
If contentInset.top != 0, minimum contentOffset may be negative value, so setting it to 0 is wrong.
Expected Behavior
Calendar can be scrolled to top.
Additional Context
Locally I fixed this bug with patch by changing code in JTACScrollViewDelegates from this:
if theCurrentContentOffset <= 0 { setTargetContentOffset(0); return }
to this:
if theCurrentContentOffset <= -scrollView.contentInset.top { setTargetContentOffset(-scrollView.contentInset.top); return }
The text was updated successfully, but these errors were encountered: