Skip to content

drag-drop: Drag delay does not allow scrolling on mobile devices #16224

Closed
@Aboisier

Description

@Aboisier

Reproduction

StackBlitz: https://angular-wls93x.stackblitz.io

Steps to reproduce:

  1. Create a draggable element with a start delay (cdkDragStartDelay) of 1 second
  2. Try scrolling by pressing on the draggable element as the start point and dragging immediately

Expected Behavior

Since the drag start delay was not elapsed when the scroll intention, I was expecting

  1. The drag to be cancelled
  2. To be able to scroll

Actual Behavior

  1. I was not able to scroll
  2. The drag element was teleported to my finger after the delay was elapsed (one second)

Environment

  • Angular: 8.0.1
  • CDK/Material: 8.0.0
  • Browser(s): Chrome (74.0.3729.169)
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions