Skip to content

bug:(@angular/cdk/drag-drop) cdkDragEnded fired at different times for items in <cdk-drop> #13091

Closed
@kccsf

Description

@kccsf

Bug, feature request, or proposal:

Bug

What is the expected behavior?

When clicking and releasing an item within a cdk-drop element that has not previously been dragged vs an item that has previously been dragged, the animation and cdkDragEnded event should fire after the same amount of time.

What is the current behavior?

On clicking and immediately releasing an item in a that has not previously been dragged, the animation and cdkDragEnded events fire almost immediately. After dragging the item (regardless of where it lands, ie even placing it back where it was), then clicking and immediately releasing the item the animation/cdkDragEnded event takes longer.

What are the steps to reproduce?

Behaviour can be seen in the 'Drag&Drop sorting' section:
https://beta-angular-material-io.firebaseapp.com/cdk/drag-drop/examples

drag end time

What is the use-case or motivation for changing an existing behavior?

Uniformity. If clicked but not dragged I do something else with the item, so is strange from a user's perspective that this happens at different times.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

@angular/cdk 7.0.0-beta.0
@angular/core 6.1.7
typescript 2.9.2

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions