Skip to content

Conversation

@palcalde
Copy link

Looking at your implementation, this is the best results I could get without touching a lot of stuff. With this fix the months always snap to their edge.

The issue: if you place arrows in your calendar to call loadPreviousPageWithAnimation and loadNextPageWithAnimation, the bug appears when the user taps on an arrow multiple times, without letting the previous animation to finish.

I pushed two branches with modifications on your example so you can reproduce the error easily:
Checkout this one to reproduce it : https://github.com/palcalde/JTCalendar/tree/noFix
Checkout this one to see how the fix works: https://github.com/palcalde/JTCalendar/tree/withFix

Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant