Timeline: date/time step on change by drag


Here is a video that shows the issue:

Basicaly I can’t set the date atomicaly, it is always rounded to the exact beginning or end of the day / month (depending on selected zoom scale). How to fix it, so I’m able to set the date exactly where I endted the drag, with the hour-precision (day is fine too) ?

All samples here https://docs.dhtmlx.com/gantt/samples/03_scales/ have the same issue.


You need to disable default round_dnd_dates config, which moves the task’s start and end dates to the nearest scale marks:
https://docs.dhtmlx.com/gantt/api__gantt_round_dnd_dates_config.html ;
Please check the following snippet: