react-svg-pan-zoom icon indicating copy to clipboard operation
react-svg-pan-zoom copied to clipboard

"Unable to preventDefault inside passive event listener invocation." on console

Open mikkopori opened this issue 4 years ago • 4 comments

Bug reports:

After upgrading to 3.8.1. the warning "Unable to preventDefault inside passive event listener invocation." started appearing on mouse events in mobile over the react-svg-pan-zoom using Chrome.

Similar issues (with fixes) can be found in other repos: https://github.com/inuyaksa/jquery.nicescroll/issues/799 https://github.com/ariutta/svg-pan-zoom/issues/360

This seems to be the cause: https://developers.google.com/web/updates/2017/01/scrolling-intervention

Fixing this requires perhaps only changing the event listener invocation to active?

mikkopori avatar Oct 27 '20 08:10 mikkopori

was this ever fixed?

fabiocatino avatar Dec 22 '22 10:12 fabiocatino

On 3.12.1 and hasn't been fixed. But this comment from the https://github.com/inuyaksa/jquery.nicescroll/issues/799 thread worked for me: https://github.com/inuyaksa/jquery.nicescroll/issues/799#issuecomment-886062133

jedrojas avatar Sep 28 '23 01:09 jedrojas

This is still an issue on 3.12.1. I can't get it to work even with @jedrojas suggestion. Would love a fix so I can use this on Chrome

connerkennedy32 avatar Nov 30 '23 18:11 connerkennedy32