Skip to content

Real Android device - touch events not triggered when scrolling with zIndex change #8517

@M-i-k-e-l

Description

@M-i-k-e-l

Description

Real Android device - touch events are not triggered after scrolling when view has animated style (useAnimatedStyle) with a zIndex change.

I am not sure if this belongs in react-native-reanimated or react-native-gesture-handler as the bug involves them both (I tried to find a ticket there as well).

Steps to reproduce

  1. Install a new RN project, I used:
    npx @react-native-community/cli@latest init --version 0.78.3 TabControllerAndroid
  2. Install react-native-reaniamted (3.19.3) and react-native-gesture-handler (2.29.0)
  3. Configure babel.config.
  4. Replace the code in App.tsx with the snack (link below).
  5. Install the app on a real Android device.
  6. Press a card (left tab) - log will be recorded ✅
  7. Scroll down in the same tab.
  8. Press a card - log will be recorded ✅
  9. Change to the right tab.
  10. Press a card (left tab) - log will be recorded ✅
  11. Scroll down in the same tab.
  12. Press a card (left tab) - log will not be recorded ❌
  13. Change to the left tab.
  14. Scroll down in the same tab.
  15. Press a card (left tab) - log will not be recorded ❌

Snack or a link to a repository

https://gist.github.com/M-i-k-e-l/092cdc48d3952ee227d04e905e8a0a52

Reanimated version

3.19.3

Worklets version

none

React Native version

0.78.3

Platforms

Android

JavaScript runtime

Hermes

Workflow

React Native CLI

Architecture

New Architecture (Fabric renderer)

Build type

No response

Device

Real device

Host machine

macOS

Device model

Pixel 9a API 36

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Platform: AndroidThis issue is specific to AndroidRepro providedA reproduction with a snippet of code, snack or repo is provided

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions