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

Enable scroll through #9

Open
bmilovanovic opened this issue Mar 4, 2024 · 5 comments
Open

Enable scroll through #9

bmilovanovic opened this issue Mar 4, 2024 · 5 comments

Comments

@bmilovanovic
Copy link

Hi, great library that you built! I'm placing multiple player composables into the LazyRow but I can't scroll it by swiping on the player. Can you help me pass scroll gesture to the parent composable?

@bmilovanovic bmilovanovic changed the title Eneable scroll through Enable scroll through Mar 6, 2024
@IlyaPavlovskii
Copy link
Owner

Thanks @bmilovanovic
Could you please provide a sample of usage? I'll investigate and try to solve the problem as soon as possible

@bmilovanovic
Copy link
Author

I'm trying to scroll horizontally through the list of videos. If I just place YouTubePlayer in a LazyRow item - nothing specific code-wise, it will scroll but it will trigger actions on the player itself regularly, which disturbes the UX.
I tried doing some fancy logic disabling the gestures on YouTubePlayer via modifier but it's been pretty inconsistent - sometimes it won't scroll at all, at other times it will scroll but also invoke some action on the player itself.

horizontal_scrolling_not_disabled.mp4

@IlyaPavlovskii
Copy link
Owner

Investigated problem. The major trouble that webview interprets touches as a click. Continue searching for how to solve that problem.

@bmilovanovic
Copy link
Author

Any further findings @IlyaPavlovskii, should I contribute somehow?

@IlyaPavlovskii
Copy link
Owner

Sorry, didn't find any good solution(
Sure, if you have any idea I'll be very grateful

Thanks

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

2 participants