recognize draged events which are not really moved

Is there a way to recognize if a event is really moved after dragging?
Actually it’s possible to drag a event and place it again on the same place (same start/end-time) as before (with holding the mousebutton clicked). Unfortunately a “onBeforeEventChanged” is fired in this moment.
How can I recognize that the event still has the same start & end time as before?

Hello,

You can attach additional handler to the onBeforeDrag event and store initial start and end dates. And then check them in the onBeforeEventChanged event.

Best regards,
Ilya

Documentation for other users:

scheduler.attachEvent(“onBeforeDrag”, function (event_id, mode, native_event_object){
var event = scheduler.getEvent(event_id);
event[“old_start_date”] = event.start_date;
event[“old_end_date”] = event.end_date;
return true;
});

scheduler.attachEvent(“onBeforeEventChanged”, function(event_object, native_event, is_new){
if(event_object[“old_start_date”].getTime() == event_object.start_date.getTime() && event_object[“old_end_date”].getTime() == event_object.end_date.getTime()){
return false;
}
}