Ask HN: Current best practice for drag-and-drop?
Originally it was built with HTML5 drag-and-drop, but we've started to see many issues, specifically in Chrome. For instance, previously we got a ghost image of the element for free in both Firefox and Chrome, but recently Chrome has reverted to a little gray box with the element text. We could use setDragImage, but since we're dragging plain old DOM elements that seems excessive. Chrome also seems to treat the dragEnter events strangely, making nested element hover handling difficult.
We could potentially implement a custom solution (the front-end is React, so it wouldn't be too hard) but that also seems excessive.
I'm about to add a dependency on jQuery and jQuery UI just to allow the use of their bulletproof Draggable and Droppable elements. Somehow that feels dirty. Is there a good, modern way to allow us to drag regular DOM elements and handle the hover and drop events? It doesn't seem like it should be this hard.