Don't put the full item container as clickable

pull/2/head
Trond Ekseth 2022-11-19 17:17:21 +01:00
parent ceebf7c099
commit a091df36e4
1 changed files with 2 additions and 2 deletions

View File

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