Event OnDragEnd interfering with native double click

Hello,

I’m using onDragEnd event to persist my data at the end of the DnD.

My problem is when is double click to open the event editor (to add a new event) : When i double click, an empty event is added THEN the event editor is opening.
If i slightly drag during this double click (even 1px) my onDragEnd is called.

Here is my onDragEnd and showLightBox code :

Thanks

Hello.

If you want to save data after event changing (e.g. DnD) you could use onEventChanged handler.
docs.dhtmlx.com/scheduler/api__s … event.html
If you want to save data after event creating (e.g. DnD, double click) you could use onEventAdded handler.
docs.dhtmlx.com/scheduler/api__s … event.html
If you want to save event removing you could handle onConfirmedBeforeEventDelete.
docs.dhtmlx.com/scheduler/api__s … event.html

Thank you very much, onEventChanged did the trick !

Last question :

Here : docs.dhtmlx.com/scheduler/sample … ditor.html

When you double click, the light box pop up and at the same time, an green event is added on the calendar. If you click Cancel button, the pop up close and the green event is removed.

It is possible to not add an green event box when you double click on the calendar, but show the lightbox ?
I’m using a custom lightbox. Is there a function to do that ? Or i’ll be forced to modify the core ?

Thanks

I found it :

in my lightbox, this is perfect