[fix] current drag not updating

This commit is contained in:
kwaroran
2023-05-23 20:50:50 +09:00
parent 1f8844b52d
commit 266ca76363

View File

@@ -258,6 +258,7 @@
type: "risuDrag", type: "risuDrag",
index: ind index: ind
})) }))
currentDrag = ind
const avatar = e.currentTarget.querySelector('.avatar') const avatar = e.currentTarget.querySelector('.avatar')
if(avatar){ if(avatar){
e.dataTransfer.setDragImage(avatar, 10, 10); e.dataTransfer.setDragImage(avatar, 10, 10);