reppners / ngx-drag-drop

Angular directives using the native HTML Drag And Drop API
https://reppners.github.io/ngx-drag-drop/
BSD 3-Clause "New" or "Revised" License
300 stars 119 forks source link

get position of element not cursor #15

Closed inspirassion closed 6 years ago

inspirassion commented 6 years ago

Howw to get new position of element when dragEnd instead of position of cursor

reppners commented 6 years ago

What is your use case?

The dropzone will provide the drop index in the drop event if you declare an element with the dndPlaceholderRef directive.

dragend is emitted on the dragged item. But what should happen with a successful drop is rather business of the dropzone, not the dragged item.

reppners commented 6 years ago

Closing due to inactivity. Feel free to reach out if you need further help.