Hello Menglin,
This is not the full configuration as at least you are using the skip_off_time and work_time configs. And you may have other related things.
Probably, the issue is related to the Gantt configuration, but it is hard to suggest what might be wrong as I don’t see your code.
Please add your configuration to the following snippet and make sure that the issue is reproduced there:
Then, click on the Save button and send me the link.
Or send me a ready demo with all the necessary JavaScript and CSS files so that I can reproduce the issue locally.
Is there a method for I can tell how far the mouse is moving when drag_resize triggers?
No, there is no built-in method for that. You need to implement a custom solution by using the Gantt API and Javascript.
There is the onMouseMove event handler, but it fires only when you move the mouse: https://docs.dhtmlx.com/gantt/api__gantt_onmousemove_event.html
Or you can attach mouse events from the window object.
When onBeforeTaskDrag is executed, is there a way to know how far my mouse has slid?
The event fires before you start dragging or resizing a task. There is the event argument, but it only has the initial mouse position:
If you want to get some information regarding the position inside the Gantt container, you can save the initial position in the onBeforeTaskDrag event handler, then check the position and compare the difference in the onTaskDrag event handler: https://docs.dhtmlx.com/gantt/api__gantt_ontaskdrag_event.html
Also, there is no need to duplicate the questions. It doesn’t affect the response time.
If you want to receive the answer sooner, you can submit a support request via email. You can find the support email in the letter with the license.