OnThisDay: observe size changes

pull/460/head
Varun Patil 2023-02-23 22:34:34 -08:00
parent 6a37009b02
commit c6df61b61d
1 changed files with 1 additions and 0 deletions

View File

@ -91,6 +91,7 @@ export default defineComponent({
inner.addEventListener("scroll", this.onScroll.bind(this), { inner.addEventListener("scroll", this.onScroll.bind(this), {
passive: true, passive: true,
}); });
new ResizeObserver(this.onScroll.bind(this)).observe(inner);
this.refresh(); this.refresh();
}, },