Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hover nested in ScrollView and scrolling ScrollView not working simultanously on Android #3064

Closed
proohit opened this issue Aug 23, 2024 · 0 comments · Fixed by #3067
Closed
Labels
Platform: Android This issue is specific to Android Repro provided A reproduction with a snack or repo is provided

Comments

@proohit
Copy link

proohit commented Aug 23, 2024

Description

I'm trying to use Gesture.Hover in order to visualize hover effects with external mouse usage on react-native mobile (non-web).

I have a (global) ScrollView that wraps screens, that might include interactive elements (such as Pressables). These Pressables need to be visible via mouse hover. The problem is, that the GestureDetector appears to interfer with scrolling events. I have tried setting simultaneousWithExternalGesture with a ref to the scrollview, but that doesn't seem to change anything.

This does not apply to iOS. Everything works fine there.

Other (related) issues tend to focus on conflicting Gesture.Pan, but I'm having trouble with Hover as well.
related issues: #2496, #2616

also, here's a video demonstrating the below snack example:

screen-20240823-114218.2.mp4

Steps to reproduce

  1. add scrollview (with as many items as needed to scroll but without any GestureDetector)
  2. add items with GestureDetector, setting Gesture.Hover
  3. try to scroll via mouse wheel inside the items without and with GestureDetector

alternatively, open up the below Expo Snack and scan with Expo Go

Snack or a link to a repository

https://snack.expo.dev/@d.timur/biased-indigo-cheese

Gesture Handler version

2.16.1

React Native version

0.74.5

Platforms

Android

JavaScript runtime

None

Workflow

Expo managed workflow

Architecture

None

Build type

Debug mode

Device

Real device

Device model

No response

Acknowledgements

Yes

@github-actions github-actions bot added Repro provided A reproduction with a snack or repo is provided Platform: Android This issue is specific to Android labels Aug 23, 2024
@m-bert m-bert closed this as completed in 5b28dcb Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Android This issue is specific to Android Repro provided A reproduction with a snack or repo is provided
Projects
None yet
1 participant