gantt icon indicating copy to clipboard operation
gantt copied to clipboard

With Autoscroll turned on, if resize task and release mouse outside browser window, library will do infinite scrolling

Open zxsure opened this issue 2 years ago • 1 comments

As the title described, is there a way to stop the infinite scrolling after mouse up outside the browser window and set proper task end date accordingly.

zxsure avatar Sep 25 '23 09:09 zxsure

Gantt doesn't have a built-in way to detect mouse events outside the current frame or the browser window. If you release the mouse button within the frame/window, Gantt will detect that and stop dragging or resizing a task. I added it as a feature request, so the dev team will add it in the future, but I cannot give you any ETA.

For now, you need to implement a custom solution by using the Gantt API and Javascript.

Here is an example of how it can be implemented: https://snippet.dhtmlx.com/5lj2t4o3

gearcoded avatar Sep 28 '23 11:09 gearcoded