chartjs / chartjs-plugin-zoom

Zoom and pan plugin for Chart.js
MIT License
598 stars 327 forks source link

Chrome warning - Added non-passive event listener to a scroll-blocking event #827

Closed jroush-ipg closed 2 weeks ago

jroush-ipg commented 3 months ago

This warning is shown in chrome when the page includes a zoomable chart. This warning was previously brought up in #597, but was closed without a proper resolution.

Chrome issues this warning when a listener is registered for scroll-blocking events (touchstart, touchmove, wheel) that do not explicitly specify a value for the "passive" option. The warning is suppressed if an explicit value is provided, regardless of whether it is true or false.

So this issue should be fixable by providing a passive: false option for all wheel event listeners.