Open tomvankruijsbergen opened 5 months ago
Thanks for reporting this @tomvankruijsbergen This is an issue that we're already aware of and we're currently looking into it already. We'll update here once we have more news on what the resolution is
Thanks for reporting this @tomvankruijsbergen This is an issue that we're already aware of and we're currently looking into it already. We'll update here once we have more news on what the resolution is
Thanks @cortinico 🙂 is there an issue or PR or so that I can track?
This is practically the same issue as:
Description
On Android, a view in a horizontal ScrollView with a scroll-based transform on it does not register onPress events everywhere in its tap radius: it seems to be the intersection of the initial transform and its position if it had no transform.
Steps to reproduce
Vanilla expo install, apply the given Expo snack.
Run
npx expo run:android
.In the blue scrollview, scroll a bit to the right until the orange box is fully vertically centered (has translateX: 0)
Broken: When you tap the lower two-third of the orange box, in the logs you'll see
in
andout
. Expected behaviour is that this should triggerpressed
as well.As expected: When you tap the upper third of the orange box, in the log you'll see
in
,out
,pressed
.As expected: Tapping above the orange box' radius does not trigger any logs.
Change the translateX outputRange to
[200, 0]
and see that now, you seepressed
only when you tap the lower third of the orange box.Notes:
translateX
totranslateY
, it still does not work.newArchEnabled=false
, everything works as expected.translateX
toskew
, everything works as expected.React Native Version
0.74.1
Affected Platforms
Runtime - Android
Areas
Fabric - The New Renderer
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://snack.expo.dev/Qp9FI928apoM_h6HHMXp8
Screenshots and Videos
No response