Skip to content

Horizontal trackpad gestures bypass NeverScrollableScrollPhysics #35304

@emshack

Description

@emshack

From within a Flutter application running on desktop, I'm using a TabBarView that looks something like this:

TabBarView(
    controller: controller,
    children: children,
    physics: NeverScrollableScrollPhysics(),
);

The NeverScrollableScrollPhysics seems to work as intended for most gestures. However, when I'm on a device with a trackpad (Macbook Pro), a two-finger horizontal scroll gesture causes the tabs to scroll. There doesn't seem to be a good way to prevent this behavior.

@stuartmorgan

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: desktopRunning on desktopcustomer: octopodframeworkflutter/packages/flutter repository. See also f: labels.platform-linuxBuilding on or for Linux specificallyplatform-macBuilding on or for macOS specificallyplatform-windowsBuilding on or for Windows specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions