-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
How to know when the calendar stop scrolling? #126
Comments
Why not loading on |
@WenchaoIOS Sorry for not explaining my problem accurately. |
@WenchaoIOS Any Suggestions? |
What do you mean by 'jumpy'? |
Not smooth. the loading interrupts the scrolling animation when I call calendar.relaodData() while the calendar is scrolling. |
Can you make a sample project? A repo or a droxbox link? |
https://www.dropbox.com/s/fsm4dlugt5g6zmi/FSCalendar-1.6.2%202.zip?dl=0 The best thing I'm looking for is to be able to do something like instead of reloadData directelly. call
|
I've pushed a few commits to make |
Hi @WenchaoIOS To observe it, you need to set some borders, colours and title colors (make it needs more time to proccess) and load it on a slow machine (I use iPad 2) |
Hi @WenchaoIOS
I have a lot of events to load in the calendar for 10 years range. what I'm trying to do it loading more data with scrolling and when loading finishes I call
calendar.relaodData()
. The problem is when that happens while the calendar is still dragging or decelerating, the scrolling is interrubtted. What I want to do is get the data and check before I reload the calendar if it's scrolling or not. if not scrolling I update the calendar with the new data if still scrolling I setcalendarNeedsUpdate = true
, but I couldn't find a way to detect when the calendar stop scrolling to update it.If there is a way to get notifiyed when it stop scrolling or anyother suggesstion is much appreciated.
Thanks,
The text was updated successfully, but these errors were encountered: