It’s a very strange decision to leave it that way. People are very uncomfortable approaching the extremes of the chart, it takes some effort.
@manoj-mohan
It doesn’t work after the resize event, because the chart is redrawn and here’s the point in the UseEffect (chart == null) condition and addEventListener is not set.
Big thanks! But one small problem. This click event also affected onresize event (my chart have zoom and panning), how to prevent it on resize?
Is it possible to do it in React with functional component?