Skip to content

Odd behaviour when SelectionArea wraps a TabBarView #149426

@chrallard

Description

@chrallard

Steps to reproduce

  1. Drag the mouse to attempt to select both texts. "First tab" text first, and "Sidesheet" text second.
    a. Notice the tab-view slowly start to transition to the next tab, then bounce back.
    b. Also notice the "Sidesheet" text won't get selected.
  2. Next, click the green column. This seems to reset the focus scope?
  3. Now click somewhere on the yellow sidesheet.
    a. Notice the same tab-transitioning behaviour.

Hopefully the video makes sense if this doesn't ^

Expected results

I'm not entirely sure if this behaviour is intentional, but I would not expect the tab view to begin its transition.

Actual results

Tab view transition begins.

Code sample

Dart pad minimal reproducible example

Screenshots or Video

Video demonstration
evidence.mov

Logs

No response

Flutter Doctor output

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: desktopRunning on desktopf: selectionSelectableRegion, SelectionArea, SelectionContainer, Selectable, and related APIsfound in release: 3.22Found to occur in 3.22found in release: 3.23Found to occur in 3.23frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyteam-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions