Skip to content

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

Description

@mbcorona

Follow-up to #149426 and PR #189544.

PR #189544 stops paged scrollables from auto-scrolling while a SelectionArea extends a selection with the mouse, by overriding the page-snapping flag on PageScrollPhysics.

CarouselScrollPhysics (in packages/flutter/lib/src/material/carousel.dart) also snaps to item boundaries, but it extends ScrollPhysics directly rather than PageScrollPhysics, so it does not inherit that override. A CarouselView wrapped in a SelectionArea should therefore show the same problem: drag-selecting text with a mouse past the edge snaps to the next/previous item instead of extending the selection.

Expected: mouse selection-drag extends the selection; the carousel does not snap items.

Fix direction: once the new page-snapping property lands on ScrollPhysics via #189544, override it in CarouselScrollPhysics. It lives in Material, hence a separate issue from the widgets-layer fix.

Suggested labels: framework, f: scrolling, f: material design, a: text input

Activity

  1. added
    a: text inputEntering text in a text field or keyboard related problems
    frameworkflutter/packages/flutter repository. See also f: labels.
    p: material_uimaterial_ui package in flutter/packages
    f: scrollingViewports, list views, slivers, etc.
    f: selectionSelectableRegion, SelectionArea, SelectionContainer, Selectable, and related APIs
    team-designOwned by Design Languages team
    on Aug 7, 2026
  2. added and removed
    team-designOwned by Design Languages team
    on Aug 12, 2026
  3. added
    P2Important issues not at the top of the work list
    on Aug 13, 2026
  4. added
    packageflutter/packages repository. See also p: labels.
    and removed
    frameworkflutter/packages/flutter repository. See also f: labels.
    on Aug 17, 2026
  5. moved this from Incoming Issues to Updated in SelectableRegion Improvementson Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemsf: scrollingViewports, list views, slivers, etc.f: selectionSelectableRegion, SelectionArea, SelectionContainer, Selectable, and related APIsp: material_uimaterial_ui package in flutter/packagespackageflutter/packages repository. See also p: labels.team-text-inputOwned by Text Input teamtriaged-text-inputTriaged by Text Input team

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions