chrvadala / react-svg-pan-zoom

:eyes: A React component that adds pan and zoom features to SVG
https://chrvadala.github.io/react-svg-pan-zoom/
MIT License
684 stars 126 forks source link

onmouseover event doesn't fire on SVG path #223

Closed LukasV closed 7 months ago

LukasV commented 8 months ago

I suppose there is a stopPropagation() being called somewhere within this library which prevents me from using map with rollovers. Is there any chance this behavior could be toggled via prop? Thank you for your consideration. Otherwise great work!

LukasV commented 7 months ago

Ok. Silly me. I should have read the manual better. RTFM!

With the tool none the user can interact with SVG child elements and trigger events. With the tool auto the user can interact with SVG child elements, perform pan (dragging the image), zoom in (double click), zoom out (double click + shift).

So with the right tool it is possible to interact with s inside the SVG element. Kudos to author(s)!