Closed mgcrea closed 1 day ago
Hey! 👋
It looks like you've omitted a few important sections from the issue template.
Please complete React-native-svg version section.
Tried to implement the behaviour with react-native-skia & gesture-handler to pinpoint the active element and got the same buggy behaviour, from what I can see the coordinates are actually wrong so it is probably a react-native bug. Will close this as I have reproduced it without RNSVG.
Description
I am encountering a strange intermittent bug that does not happen on every app start but when it happens it will trigger consistently during the lifecycle of the app, can only be triggered with a pencil/stylus (Apple Pencil)
I have a rect with resize anchors (eg. corner circles) that can be pressed, when pressed (using pressIn), I log the id of the pressed item.
On some app start I will have one pressIn every two that will incorrectly call the previous callback (so you get the same callback called twice whatever anchor you pressed) when taped with the Apple pencil, will work properly with a touch tap or a mouse.
Thought it might be a react bug but I can't reproduce it with similar code using plain Views (cf. the repro that has both side by side).
Tried to debug in Xcode with breakpoints but no luck for now (not my strong suit).
Happy to dig further if given guidance!
Steps to reproduce
Snack or a link to a repository
https://github.com/mgcrea/react-native-reanimated-sandbox/tree/bug-react-native-svg-1
SVG version
15.3.0
React Native version
0.74.2
Platforms
iOS
JavaScript runtime
Hermes
Workflow
React Native
Architecture
Paper (Old Architecture)
Build type
Release app & dev bundle
Device
Real device
Device model
iPad Pro 13"
Acknowledgements
Yes