You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
I am using keys and useCallback to prevent any ref issues.
The event.nativeEvent.locationX/locationY are correct even if the callback is wrong.
Initially thought it was a dev mode bug but reproduced the issue on a release build.
Tried to debug in Xcode with breakpoints but no luck for now (not my strong suit).
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
The text was updated successfully, but these errors were encountered: