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

Required prop types warnings #117

Closed psixdev closed 5 years ago

psixdev commented 6 years ago

When I zoom with gestures on the touchscreen, I get errors in the console (I use chrome devtools with my phone as remote device):

Warning: Failed prop type: The prop `startX` is marked as required in `be`, but its value is `null`.
Warning: Failed prop type: The prop `startY` is marked as required in `be`, but its value is `null`.
Warning: Failed prop type: The prop `endX` is marked as required in `be`, but its value is `null`.
Warning: Failed prop type: The prop `endY` is marked as required in `be`, but its value is `null`.

This problem is repeated in the example: https://jsfiddle.net/chrvadala/f67qyfsd/

image

chrvadala commented 5 years ago

Fixed with v3.1