pop39
This commit is contained in:
parent
ed4e488ce8
commit
1f7c29b2ca
@ -158,6 +158,8 @@ function initDrag() {
|
|||||||
|
|
||||||
function initSlotDrag() {
|
function initSlotDrag() {
|
||||||
document.querySelectorAll(".slot img").forEach((img) => {
|
document.querySelectorAll(".slot img").forEach((img) => {
|
||||||
|
img.setAttribute("draggable", "true");
|
||||||
|
|
||||||
img.addEventListener("dragstart", (e) => {
|
img.addEventListener("dragstart", (e) => {
|
||||||
const slot = img.closest(".slot");
|
const slot = img.closest(".slot");
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user