I am having trouble with drag moves. Whenever I end the drag, the task start date moves to the nearest date matching the scale. For example, if I have scale_unit = week and step = 1, if I try to drag a task +/- 3 days, it will jump back to the original date. If I edit with the lightbox, or through the API directly, I have no issue.
There was a bit of odd behavior with this as well, one point of which makes sense now.
Even when drag_mode was not move, but progress, the realignment/rounding happened, which seemed unnecessary since the dates weren’t changing.
The other was that using the sample code for moving child tasks from docs.dhtmlx.com/gantt/desktop__dnd.html, the parent task would align to the scale, but not the children. That makes sense now since the children were being moved through the API and not the dnd, and using onTaskDrag doesn’t cause the children to move after the drag finishes and the realignment occurs.
From a visual perspective onTaskDrag is good, but a call on a change event should be used if the alignment is turned on to make sure the children get the final update.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan