-
Notifications
You must be signed in to change notification settings - Fork 800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
calendar.currentSection() skips the multiple of 10th section #1266
Comments
For now, I have exposed a new function in the delegate |
Thank you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version: 8.0.3
So, I have only tested this with the weekly view, but when I check for
calendar.currentSection
in thedidScrollToDateSegmentWith
delegate method, it skips the multiples of 10th (id: 9) section. So if I print these values and start scrolling from the first section, I get the following:As you can see, it misses the 9th and 19th section. This is not a major issue, but I found it while debugging
calendarView.scrollToDate
function when it's invoked withtriggerScrollToDateDelegate: true, animateScroll: true
. The problem is that for certain sections, thetriggerScrollToDateDelegate
triggers before the animation completes.I narrowed it down to this function:
The
currentSection()
call in the above function returns the wrong section in some cases and hence it satisfies the condition which invokes thedidScrollToDateSegmentWith
prematurely.I couldn't find a way to fix it but I am hoping someone here can point me to the right direction. Thank you!
The text was updated successfully, but these errors were encountered: