lukasoppermann / html5sortable

VanillaJS sortable lists and grids using native HTML5 drag and drop API.
http://lukasoppermann.github.io/html5sortable/index.html
MIT License
1.62k stars 461 forks source link

get pageX and pageY #937

Closed xqkeji closed 5 months ago

xqkeji commented 1 year ago

Is your feature request related to a problem? Please describe. get pageX and pageY on "sortstart" and "sortstop"

Describe the solution you'd like CustomEvent adds data details: { origin: { elementIndex: originElementIndex, index: originIndex, container: originContainer }, item: dragging, dragEvent:e //Original event }

The complete dragEvent facilitates the development of various applications

lukasoppermann commented 5 months ago

Happy to accept a PR for this.