diff --git a/components/timeline/TimelinePaginator.vue b/components/timeline/TimelinePaginator.vue index 99c5543a..b041f4ad 100644 --- a/components/timeline/TimelinePaginator.vue +++ b/components/timeline/TimelinePaginator.vue @@ -9,14 +9,34 @@ const { paginator, stream } = defineProps<{ }>() const virtualScroller = $(computedEager(() => useFeatureFlags().experimentalVirtualScroll)) +const updater = ref() +const observer = new IntersectionObserver((entries) => { + const [entry] = entries + if (entry.isIntersecting) { + observer.unobserve(entry.target) + setTimeout(() => { + (entry.target as HTMLButtonElement)?.click() + }, 50) + } +}, { threshold: 0.5 }) + +watch(updater, (v) => { + if (v) + observer.observe(v) +})