garblovians / react-native-svg-pan-zoom

Pan-zoom via two-finger "Google Maps"-style pinch and drag gestures
MIT License
26 stars 23 forks source link

onClick duplicates #8

Closed AdamGerthel closed 5 years ago

AdamGerthel commented 5 years ago

I have a pretty simple SVG with a couple of circles, each with unique names, and with an onClick prop on the surrounding SvgPanZoomElement. Clicking one circle works as expected, but clicking another triggers the same event as the first one did. Clicking it once again gets it back on track. It's as if the click events are delayed one step:

error

You can view the code here: https://snack.expo.io/@insats/cmVhY3

Using onPress on the child Circle works, so there's nothing wrong with the handler itself.

AdamGerthel commented 5 years ago

The issue seems to be with react-native-svg, see https://github.com/react-native-community/react-native-svg/issues/939