Don't put the full item container as clickable
parent
0e873e855d
commit
4745151c39
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue