clear the drag fade when a card is dropped in place
This commit is contained in:
parent
5e342b6fe5
commit
c8dd0919be
1 changed files with 2 additions and 0 deletions
|
|
@ -518,6 +518,8 @@ function wireCardDrag(card, game) {
|
|||
})
|
||||
card.addEventListener('dragend', () => {
|
||||
dragId = null
|
||||
// a drop in place never re-renders the list, so drop the fade here too
|
||||
card.classList.remove('dragging')
|
||||
clearDropMarks()
|
||||
})
|
||||
card.addEventListener('dragover', e => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue