-
Notifications
You must be signed in to change notification settings - Fork 348
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
Delegate called twice: dayView(dayView: DayView, didUpdate event: EventDescriptor) #356
Comments
Are you having any issues because of this? |
Kind of, when the event is updated the app is reacting to changes. Right now there's no visible issue but I will add some more functionalities around this. |
Would you be able to implement this change? |
Long press into drag and drop (without releasing the touch in between). |
Feel free to propose the PR at this stage, so that I could test it as well. I also recommend testing with https://github.com/richardtop/CalendarApp since it's an end-to-end implementation of the calendar instead of the one embedded into this application. |
When I drag an event after long-pressing it (without releasing!), after dropping it I'm seeing the delegate function always called twice.
This is caused by the snap animation in
commitEditing
. What happens on mouse release:handlePanGesture
is called and since the state is ended, it calls commitEditingtimelineDidLongPress
is callededitedEventView
is still there (animation did not finish andcompletionHandler
was not called to set it to nil), the animation starts againThe text was updated successfully, but these errors were encountered: