aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-05-21 20:58:37 +0200
committer0neGal <mail@0negal.com>2022-05-21 20:58:37 +0200
commitd720773525d04e1deebcbe6a12021ed568a27104 (patch)
treed279958cba0138193ca8fc65c1f0dfa9eee0c7f7
parent80f8b72b14bc3d3e0c3ec575dd8a696b11bd8bec (diff)
downloadViper-d720773525d04e1deebcbe6a12021ed568a27104.tar.gz
Viper-d720773525d04e1deebcbe6a12021ed568a27104.zip
fixed filters not working
-rw-r--r--src/app/browser.js4
1 files changed, 3 insertions, 1 deletions
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);
}
})