bug: only account for if the top of an elemnet is out of view
[apps/outliner/.git] / public / assets / bundle.js
index ae072e4fac40d3a45b5f7e0df776b525a3615939..e87375acd7acfa2ea0b6968ce758903fe9686585 100644 (file)
@@ -18690,7 +18690,7 @@ function isVisible(element) {
     const rect = element.getBoundingClientRect();
     return (rect.top >= 0 &&
         rect.left >= 0 &&
-        rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&
+        rect.top <= (window.innerHeight || document.documentElement.clientHeight) &&
         rect.right <= (window.innerWidth || document.documentElement.clientWidth));
 }
 exports.isVisible = isVisible;