Prevent the time reduction of a event

How I can prevent the reduction of time of an event? I’m using OnBeforeEventChanged to access the new event date using event_object, but I don’t know how to access the original date of the event before moving to compare.

Thanks in advance

You can use onBeforeDrag event to store original start and end dates of event.