diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/app/js/browser.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/app/js/browser.js b/src/app/js/browser.js index 07572d9..b6e3651 100644 --- a/src/app/js/browser.js +++ b/src/app/js/browser.js @@ -571,12 +571,12 @@ search.addEventListener("keyup", () => { let mouse_events = ["scroll", "mousedown", "touchdown"]; mouse_events.forEach((event) => { - browser.addEventListener(event, () => { + document.body.addEventListener(event, () => { Preview.hide(); - let mouseAt = document.elementsFromPoint(mouseX, mouseY); - if (! mouseAt.includes(document.querySelector("#filter")) - && ! mouseAt.includes(document.querySelector(".overlay"))) { + let mouse_at = document.elementsFromPoint(mouseX, mouseY); + if (! mouse_at.includes(document.querySelector("#filter")) + && ! mouse_at.includes(document.querySelector(".overlay"))) { Browser.filters.toggle(false); } }) |