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 while dragging #16

Closed inspirassion closed 6 years ago

inspirassion commented 6 years ago

is is possible to continually get position when dragging, this way we can for example switch pages when drag is close to edges

reppners commented 6 years ago

Yes, listen to the native drag event emitted by the dragged item. It should allow you to get the coordinates.

https://developer.mozilla.org/en-US/docs/Web/Events/drag

reppners commented 6 years ago

Closing due to inactivity. Feel free to reach out if you have further questions or need more specific answer to your question.