clear the drag fade when a card is dropped in place

This commit is contained in:
olcxja 2026-10-02 16:15:58 +02:00
commit c8dd0919be

View file

@ -518,6 +518,8 @@ function wireCardDrag(card, game) {
}) })
card.addEventListener('dragend', () => { card.addEventListener('dragend', () => {
dragId = null dragId = null
// a drop in place never re-renders the list, so drop the fade here too
card.classList.remove('dragging')
clearDropMarks() clearDropMarks()
}) })
card.addEventListener('dragover', e => { card.addEventListener('dragover', e => {