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

Cannot scroll ScrollView: iframe intercepts pan #298

Open
braincore opened this issue May 7, 2023 · 3 comments
Open

Cannot scroll ScrollView: iframe intercepts pan #298

braincore opened this issue May 7, 2023 · 3 comments

Comments

@braincore
Copy link

Describe the bug
A user is unable to scroll a scrollview if they start their touch on a video that's actively playing.

AFAICT this behavior is introduced inadvertently by YouTube and their embed API. I'm not sure what can be done.

To Reproduce

  1. Inside a scrollview, add a YT iframe.
  2. Have the YT iframe play a video.
  3. Try to scroll the scrollview by starting a gesture from the center of the video.
  4. The gesture is ignored.

Expected behavior
The scrollview should scroll.

Smartphone (please complete the following information):

  • react-native-youtube-iframe version 2.2.2
  • react-native-webview version 12.0.2
  • Device: iOS & Android emulators
@rlov
Copy link

rlov commented Aug 30, 2023

I have the same issue :c

@Davidorenlane
Copy link

I'm having the same issue :/

@abhinavicodelabs
Copy link

abhinavicodelabs commented May 31, 2024

Hey guys, try this -> https://lonelycpp.github.io/react-native-youtube-iframe/remove-context-share
It worked for me. I am using it inside Flashlist.

Screen.Recording.2024-05-31.at.12.50.37.PM.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@braincore @Davidorenlane @rlov @abhinavicodelabs and others