I have added code for manually reassigning events to a different start date when I drag/drop an event.
function reassign(event) {
event.setStartDate(new Date("29 September 2022 11:00"));
}
When I manually reassign the dragged events, using setStartDate
or scheduleEvent
, there is a slight dance that the event does on screen before it is dropped at the manually set dates.
I have tried placing this reassign
function at different locations in the code, like https://bryntum.com/products/schedulerpro/docs/api/Scheduler/feature/EventDrag#event-eventDrop , https://bryntum.com/products/schedulerpro/docs/api/Scheduler/feature/EventDrag#event-afterEventDrop,
I also tried placing the reassign code inside the onUpdate
listener for eventStore, yet the problem persists.
Can you please suggest me the ideal place to place the reassign
code, or if there is a better way to animate the event in this case?