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
681 stars 127 forks source link

Compare to SVGHeight instead of prevSVGHeight #136

Closed jakoblaegdsmand closed 5 years ago

jakoblaegdsmand commented 5 years ago

Fixes a bug that causes the viewer not to update when changing height of the embedded SVG.

jakoblaegdsmand commented 5 years ago

I was going to write up an issue about this, but then i discovered where the problem should be fixed, so I decided to make a PR instead.

Thanks for a great framework!

chrvadala commented 5 years ago

Great! Thanks for this PR. I'm going to release a new version

chrvadala commented 5 years ago

Fixed with 3.0.2. You're now in the contributors list

jakoblaegdsmand commented 5 years ago

Thanks! Glad to help