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

Carousel didn't work well when inside horizontall scroll #82

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ems107
Copy link

@ems107 ems107 commented Oct 13, 2022

This is a bug that also occurs with the CarouselView from Xamarin.Forms. It is a problem that exists with Android when deciding the scroll priority for a component (xamarin/Xamarin.Forms#9315).

My proposed solution is to force touchscreen detection on the component based on a property.
When the scroll direction of the Carousel (or any scrollable component) matches the scroll direction of the parent component (a list in my case) is when the problem occurs. If the Carousel is inside a vertical list, it works fine (and there is no point in forcing touch screen detection).
I've used a property for this because I don't know how to determine when it's needed by code.

Without changes:

carouselInsideScrollBug.mp4

With changes:

carouselInsideScrollFixed.mp4

@roubachof
Copy link
Owner

missing ios implementation

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

Successfully merging this pull request may close these issues.

2 participants