Kudos on a very polished library for this kind of thing, I think this plugs a gap.
One point to note, because it does not handle touch events, it doesn’t work on mobile. I had a use of such an interface a few months ago and basically ended up with a much less polished version of what you have. I saw that it didn’t work on mobile and had up/down arrow buttons on the left and right of each entry for that use case. However, it turned out all of my users were using it on mobile. So I replaced the dragging interface with a touch-to-select-then-then-touch-to-move interface.
Thank you for the kudos I have a lot fun working with Elm.
Also, sorry for the late reply, but I am a little bit confused about your comment. I am aware of the consequences of not handling touch events, and the package will support them as soon as possible. Is this what you meant?
I meant it more to people considering to use this package. The point is, it won’t work on mobile devices, so if what you’re developing has to work on such devices then you’ll need to think of some other solution.
I tried to use DnDList together with elm-ui. see https://ellie-app.com/4KtR4kmsntza1
It almost works, but the dragged position of the dragged element should be somehow relative to its parent.
It works when the draggedItemView is inFront of the layout.
see again https://ellie-app.com/4KtR4kmsntza1
Thank you for this great, simply-to-use package.