If you check the code, it’s not used anywhere. (v7.1.12).
Are there any alternative methods for this functionality?
If you check the code, it’s not used anywhere. (v7.1.12).
Are there any alternative methods for this functionality?
Hello,
Thanks for noticing the issue. The prevent_default_scroll
config is deprecated since version 5.0. It seems that we didn’t update the documentation’s article. We will fix it ASAP.
Is there a current option that will prevent outer scrolling?
For example, check here: DHTMLX Snippet Tool
What happens:
When I’m scrolling using the mouse wheel inside the chart, after I reach the end of the chart, the outer container will scroll too.
What I would like to happen:
When I’m scrolling using the mouse wheel inside the chart, the outer container should never scroll.
Workaround:
I’ve found that if I disable “onwheel” on the gantt container, it achieves what I want, but maybe this should be an option in the gantt chart as well. Example here: DHTMLX Snippet Tool
Only difference is this:
document.getElementById(‘gantt_here’).onwheel = function(){ return false; }
Hello,
Is there a current option that will prevent outer scrolling?
Currently, there is no built-in way to prevent scrolling the container that contains Gantt.
Workaround: DHTMLX Snippet Tool ;
Thanks for your workaround. I will tell the dev team to add this feature,
but I can’t guarantee that it will be implemented in the future.