Don't put the full item container as clickable

Trond Ekseth 2022-11-19 17:17:21 +01:00
parent 18ed3982f6
commit 1740ee4ffd
1 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ window.onload = function () {
url.innerText = ""
})
document.querySelectorAll("#items").forEach(item => item.addEventListener("click", (e) => {
document.querySelectorAll("#items .item").forEach(item => item.addEventListener("click", (e) => {
e.preventDefault()
e.target.parentElement.style.pointerEvents = 'none'
const disableui = setTimeout((t) => {
@ -182,7 +182,7 @@ window.onload = function () {
}))
}));
document.querySelectorAll("#ambiance").forEach(item => item.addEventListener("click", (e) => {
document.querySelectorAll("#ambiance .item").forEach(item => item.addEventListener("click", (e) => {
e.preventDefault()
e.target.parentElement.style.pointerEvents = 'none'
const disableui = setTimeout((t) => {