Skip to content

Allow drag scroll on mobile when locking horizontal axis #18022

@Humberd

Description

@Humberd

What are you trying to do?

When on mobile device I try to scroll down by touching a draggable element, that can only by moved left or right, it will initiate dragging instead.

Reproduction

Here is a simple example. Open it on a mobile device.

Try to scroll to the bottom. You can do it freely when not touching a draggable element, but you are unable to do it when touching it. How not to trigger dragging when moving vertically?

https://stackblitz.com/edit/angular-6scebl-mk8i9o?file=app/cdk-drag-drop-axis-lock-example.html

Environment

  • Angular: 9.0.0-rc7
  • CDK/Material: 8.2.4
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Android Oreo

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/drag-drop

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions