chrvadala / react-svg-pan-zoom

:eyes: A React component that adds pan and zoom features to SVG

Home Page:https://chrvadala.github.io/react-svg-pan-zoom/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Viewer captures and prevents the mouse back button.

japgolly opened this issue · comments

Normally pressing the back button on your mouse is equivalent of hitting the browsers "Back" button. ReactSvgPanZoom doesn't seem to check the mouse button and calls preventDefault() regardless.

Pan should only work on left-clicks. If button != 0 it shouldn't pan, and shouldn't prevent default.

Thank you for awesome library!