The clone-placeholder approach hid the source element with display:none, which some browsers treat as drag cancellation. The drag appeared to "not respond at all" to mouse press. Switch to a simpler approach: keep the source element in the DOM and move it directly during dragover. Apply a .dragGhost class after the drag image is captured (via setTimeout 0) so the source becomes a translucent dashed placeholder at the prospective drop position. drop just compares the source's current DOM index to its original data-index. Also add cursor:grabbing on :active for visible press feedback. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
13 KiB
13 KiB