Skip to content

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