double click & dragend funtion act as the same

Hello,
scheduler.attachEvent(“onDragEnd”, function(id, mode, e) {
//logic
});

this function calling for the mouse double click too. I want this happen only for the mouse drag.
please send me the solution for this . :slight_smile:

thanks .

Hello,
onDragEnd may fire because of mouse-move events happening during double click.
If you want to trace drag and drop, try using onBeforeEventChanged
docs.dhtmlx.com/scheduler/api__s … event.html

However, it happens earlier than onDragEnd and changes may be canceled on this stage