DHTMLX / gantt

GPL version of Javascript Gantt Chart
https://dhtmlx.com/docs/products/dhtmlxGantt/
GNU General Public License v2.0
1.44k stars 320 forks source link

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

Open zxsure opened 11 months ago

zxsure commented 11 months ago

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.

gearcoded commented 11 months ago

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