Don't put the full item container as clickable

Trond Ekseth 2022-11-19 17:17:21 +01:00
parent 0e873e855d
commit 4745151c39
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) => {