aboutsummaryrefslogtreecommitdiff
path: root/static/js/autoplay.ts
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/autoplay.ts')
-rw-r--r--static/js/autoplay.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/static/js/autoplay.ts b/static/js/autoplay.ts
index efa55e9..70f372a 100644
--- a/static/js/autoplay.ts
+++ b/static/js/autoplay.ts
@@ -6,8 +6,8 @@
const view = element.getBoundingClientRect();
return view.top >= -options.offset.top
&& view.left >= -options.offset.left
- && view.bottom <= (window.innerHeight || self.documentElement.clientHeight) + options.offset.bottom
- && view.right <= (window.innerWidth || self.documentElement.clientWidth) + options.offset.right;
+ && view.bottom <= (self.innerHeight || document.documentElement.clientHeight) + options.offset.bottom
+ && view.right <= (self.innerWidth || document.documentElement.clientWidth) + options.offset.right;
};
["scroll", "DOMContentLoaded"].forEach(function (event) {