Skip to content

Disallow selection edge scrolling in CarouselScrollPhysics - #196167

Draft
Bahadir10 wants to merge 1 commit into
flutter:masterfrom
Bahadir10:fix-190737-carousel-selection-edge-scroll
Draft

Bahadir10 wants to merge 1 commit into
flutter:masterfrom
Bahadir10:fix-190737-carousel-selection-edge-scroll

Conversation

@Bahadir10

Copy link
Copy Markdown

CarouselScrollPhysics snaps to item boundaries, but extends ScrollPhysics directly rather than PageScrollPhysics. When a CarouselView with itemSnapping: true is wrapped in a SelectionArea, drag-selecting text past the edge of the carousel with a mouse triggers edge auto-scrolling, which snaps to the next item instead of extending the selection.

Follow-up to #189544: this overrides allowSelectionEdgeScrolling to false in CarouselScrollPhysics, matching the behavior established for PageScrollPhysics.

Fixes #190737

Pre-launch Checklist

CarouselScrollPhysics snaps to item boundaries, but extends ScrollPhysics directly rather than PageScrollPhysics. When a CarouselView with itemSnapping: true is wrapped in a SelectionArea, drag-selecting text past the edge of the carousel with a mouse triggers the scrollable's auto-scroll, snapping to the next item rather than extending the selection.

This overrides allowSelectionEdgeScrolling to false on CarouselScrollPhysics, following the same behavior introduced for PageScrollPhysics in flutter#189544.

Fixes flutter#190737
@github-actions github-actions Bot added framework flutter/packages/flutter repository. See also f: labels. p: material_ui material_ui package in flutter/packages labels Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

framework flutter/packages/flutter repository. See also f: labels. p: material_ui material_ui package in flutter/packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CarouselView with SelectionArea edge-scrolls (snaps items) during mouse text selection

1 participant