Skip to content

Drag and Drop: Distinguish a click event from a drag event #18677

@saunandrea

Description

@saunandrea

Feature Description

I came to the Angular drag and drop from Dragula which supports distinguishing click from drag.

Dragula: "Click or Drag! Fires a click when the mouse button is released before a mousemove event, otherwise a drag event is fired. No extra configuration is necessary."
https://bevacqua.github.io/angularjs-dragula/

Maybe this already exists but I couldn't find any documentation indicating as much.

Use Case

While dragging allows you to add the item in a specific location, clicking would just add the item to the end of the list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: cdk/drag-dropfeatureThis issue represents a new feature or feature request rather than a bug or bug fixneeds: clarificationThe issue does not contain enough information for the team to determine if it is a real bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions