Skip to content

Overlapping buttons cause buttons to stop being responsive #3370

Closed
@oblador

Description

@oblador

Description

Similar scenario as described in #3350 but a different cause. Basically when having to buttons on top of each other and tapping in that overlapping area, they both trigger (see video) but only the frontmost button is properly cancelled (the backmost is stuck in highlighted mode).

This cause all buttons to become unresponsive, the only way to get back into responsive state is if you tap the highlighted button again, which is not always possible if you navigate to a new screen for example.

screen-20250131-174356.2.mp4

Steps to reproduce

  1. Make two buttons overlap each other (partially or fully)
  2. Press the topmost button
  3. Taps don't work anymore

This happens only on Android, but both in debug/release, on JSC/Hermes and on Bare/Expo.

Snack or a link to a repository

https://snack.expo.dev/@oblador/gesture-handler-overlap-reproduction

Gesture Handler version

2.20.2

React Native version

0.76

Platforms

Android

JavaScript runtime

Hermes

Workflow

None

Architecture

Paper (Old Architecture)

Build type

Release mode

Device

Android emulator

Device model

No response

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Platform: AndroidThis issue is specific to AndroidRepro providedA reproduction with a 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