Zoom feature produces preventDefault errors and jerky animations in Chrome 73
Closed this issue · 1 comments
mnogueron commented
Description
Since v73, Chrome is setting mousewheel
event listeners to be passive by default. This is breaking the zoom feature as PanZoom
make use of onWheel
event listener from React that doesn't force the listener to be passive and rely on Chrome implementation.
To fix it we need to use this.container.addEventListener('mousewheel', this.onWheel, { passive: false })
instead of React onWheel
listener.
For more details about Chrome's decision: https://developers.google.com/web/updates/2019/02/scrolling-intervention