Repository navigation
CarouselView demo page not functional using mouse scroll #165265
Description
This may be a docs/sample bug. I'm aware of #154618, but my main concern is that the web demo for https://api.flutter.dev/flutter/material/CarouselView-class.html does not work on the web.
When I saw the sample didn't work, I searched the page for any mention of "web" and didn't find any, so I was about to log a bug but found #154618 in a search.
I think the sample should include the workaround provided in the comments for #154618, i.e. the scrollBehavior: MyCustomScrollBehavior() code, so that the sample works and devs don't have to hunt for a comment in a bug to make CarouselView work on the web (and probably other systems that are mouse-based). Ideally the text could mention MaterialScrollBehavior and explain that this is necessary for mouse-based systems.
Even better, it would be nice if CarouselView just worked on all platforms without that scrollBehavior: MyCustomScrollBehavior() patch to MaterialApp, but I recognize there may be good reasons why it doesn't.
Activity
Mairramer commentedon Mar 16, 2025
You need to hold Shift + scroll, and it will work normally. But I agree that it's not very intuitive and needs some adjustments.
[-]CarouselView demo page not functional[/-][+]CarouselView demo page not functional using mouse scroll[/+]Fix CarouselView demo page is not functional using mouse scroll (#166512
github-actions commentedon Apr 23, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.Fix CarouselView demo page is not functional using mouse scroll (flut…
Fix CarouselView demo page is not functional using mouse scroll (#166…