Delay on Drag n Drop Start

Is it possible to add an delay when drag and dropping starts? to block unwanted drags when clicking on an element

like => jqueryui.com/demos/draggable/#option-delay



greets

MC


Hello,


which component does your question relates ?


If you meant grid or tree, it is possibly use onDrag or onDragIn events to block drag-n-drop in some cases. The handlers of these events get id of source and target items. And if the handler doesn’t return true, the operation will be denied:


dhtmlx.com/dhxdocs/doku.php? … _ondragout

Sorry my fault, my question belongs to the Tree Lib more precisely the makeDragable() Method. I have a div and make it dragable for dragging into the Tree. There i will delay the dragging into the tree wenn someone clicks my dragable object instead of dragging it. The Link that i postet explain my problem much better :slight_smile:

greets
MC


Hello,


please, try to use the latest dhtmlxcommon.js (attached) instead of the original one. It will solve the issue


dhtmlxcommon.zip (6.54 KB)