svg-pan-zoom
svg-pan-zoom copied to clipboard
Panning stops when the mouse leaves the svg area
With the latest version, when the mouse leaves the SVG element, the movement is stopped. This is a weird user interaction.
There was already a ticket about this but it has been closed without action : https://github.com/ariutta/svg-pan-zoom/issues/327
Is there any workaround this? This is really bad for user experience to stop panning when mouse moves out of SVG.
Passing window
or some container element to eventsListenerElement
does the work.
Running into the same problem. I tried the trick with passing window
to eventsListenerElement
.
However then the svg element reacts to clicks anywhere on the website.