Skip to content

drag-drop: make CdkDragEnd private property _activeTransform.x & y public  #14420

@ravikumarbggit

Description

@ravikumarbggit

Please describe the feature you would like to request.

I need to find out what is the transformation of the element along the x axis/ y axis on Drag End so that I can trigger some action. I can get that from _activeTransform.x but it is not accessible as it is private

What is the use-case or motivation for this proposal?

I'm trying to build swipe left and right of list and I need to find out how far element has been dragged so that I can delete element based on percentage of drag

Is there anything else we should know?

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