Description
Bug, feature request, or proposal:
When a cdk-drag
is within a cdk-drop
, the cdk-drag
element will jump to an incorrectly offset position when the mouse is first moved, given that the user drags this element using a child. The offset is always the same as the child element's offset from the parent cdk-drag
container (for example, padding of the parent or margin of the child).
What is the expected behavior?
The cdk-drag
element should always stay at the same position relative to the cursor.
What is the current behavior?
The cdk-drag
element jumps towards the bottom right when the child element is offset from its parent.
What are the steps to reproduce?
https://stackblitz.com/edit/angular-92bnjh?file=app/cdk-drag-drop-sorting-example.html
Drag using "FIRST"
, "LAST"
or the movie title to see the incorrect behavior. Dragging by the parent element results in the correct and desired behavior.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular Material: 7.0.0-beta.0