RenderableView
s inside SvgView
call onPress
when pressed outside of SvgView
#2585
Labels
RenderableView
s inside SvgView
call onPress
when pressed outside of SvgView
#2585
Description
Given any
RenderableView
which is larger than theSvgView
that it's contained in, theRenderableView
will be pressable even on the areas that are hidden due to the element overflowing out of theSvgView
Interesting thing to notice is that when the touches are done inside the bounds of
SvgView
, they are dispatched throughhitTest
. When touches are done outside the bounds ofSvgView
, thehitTest
methods are never called, and yet the events are still dispatched by other means (i could not find the source of these events).Screen.Recording.2024-12-20.at.12.32.26.mov
Steps to reproduce
EmptyExample
onPress
is called on each callback regardless of the touch locationCollapsed example code
Snack or a link to a repository
Code provided in the reproduction steps
SVG version
15.10.1 - main
React Native version
0.76.0
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native
Architecture
Paper (Old Architecture)
Build type
Debug app & dev bundle
Device
Real device
Device model
Xiaomi Redmi Note 8T, Pixel 3a emulator
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: