aboutsummaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/utils/dom.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/utils/dom.js b/src/shared/utils/dom.js
index f138c33..974d534 100644
--- a/src/shared/utils/dom.js
+++ b/src/shared/utils/dom.js
@@ -83,7 +83,9 @@ const viewportRect = (e) => {
const isVisible = (element) => {
let rect = element.getBoundingClientRect();
- if (rect.width === 0 || rect.height === 0) {
+ let style = window.getComputedStyle(element);
+
+ if (style.overflow !== 'visible' && (rect.width === 0 || rect.height === 0)) {
return false;
}
if (rect.right < 0 && rect.bottom < 0) {