| Issue 716: | Asynchronous refetchEvents() breaks event resizing | |
| 1 person starred this issue and may be notified of changes. | Back to list |
If refetechEvents() is triggered during an event resizing the resize does not take place. I have an agenda auto-updating via refetchEvents() and if I trigger an event resize drag and refetechEvents() is called before completion the resize is ignored and the event duration snaps back in place.
Nov 21, 2010
Project Member
#1
adamrs...@gmail.com
Status:
Done
Nov 22, 2010
Is there any way to check if a resize is taking place client-side? It'd be nice if in my refresh function I could check if there was a current resize action, then I could skip the refresh.
Dec 18, 2010
i assumed you were calling refetchEvents from your own code from the eventResize trigger (http://arshaw.com/fullcalendar/docs/event_ui/eventResize/). isn't everything happening from within your own code?
Dec 18, 2010
No, the problem is that I have a function called via setTimeout() every 30 seconds that refetches events. So if someone is in the middle of a drag when it does a refetch the drag is nullified once they drop it. Does that make sense? Anyway, I think I solved it. I can just make a lock when eventDragStart() is called to tell the refresh not to run and unlock it on eventDragStop(). This should probably just be filed under working as intended.
Dec 26, 2010
ok, glad you got it to work. the locking you are doing is definitely the way to go. |
|
| ► Sign in to add a comment |