Continuous horizontal auto-scroll and non-passive wheel listener warnings in @svar-ui/react-gantt
When using @svar-ui/react-gantt, the chart begins continuously scrolling horizontally right after mounting, even without any user interaction. The .wx-scale element’s inline left: value keeps updating (for example, -18200px, -18190px, etc.) in a constant loop, leading to layout thrashing and noticeably high CPU usage.
In Chrome, this behavior is accompanied by repeated [Violation] Added non-passive event listener to a scroll-blocking 'wheel' event warnings, since the internal code attaches the wheel listener using u2.addEventListener("wheel", E5); without specifying { passive: true }.
This continuous auto-scroll can even be observed in the official demo at https://svar.dev/react/gantt/#demo
, where the timeline keeps shifting left and right on its own.
Kindly look into resolving this issue, as the older wx-react-gantt version did not exhibit this continuous auto-scrolling behavior.