From d720773525d04e1deebcbe6a12021ed568a27104 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Sat, 21 May 2022 20:58:37 +0200 Subject: fixed filters not working --- src/app/browser.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/browser.js b/src/app/browser.js index 7afce22..0ec8746 100644 --- a/src/app/browser.js +++ b/src/app/browser.js @@ -439,7 +439,9 @@ events.forEach((event) => { Preview.hide(); let mouseAt = document.elementsFromPoint(mouseX, mouseY); - if (! mouseAt.includes(document.querySelector("#filter"))) { + if (! mouseAt.includes(document.querySelector("#filter")) + && ! mouseAt.includes(document.querySelector(".overlay"))) { + console.log(mouseAt) Browser.filters.toggle(false); } }) -- cgit v1.2.3