From a8166dff960ef23b716045e2693f2858a49ff4b1 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 27 Aug 2026 20:56:46 +0300 Subject: [PATCH] fix virtual scrolling --- src/components/timeline/timeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index 9a6d75c8a..872f61216 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -107,7 +107,7 @@ const Timeline = { const statusesPerSide = Math.ceil(Math.max(3, window.innerHeight / 80)) const min = Math.max(0, this.virtualScrollIndex - statusesPerSide) const max = Math.min(amount, this.virtualScrollIndex + statusesPerSide) - return new Set(this.timeline.order.slice(min, max)) + return new Set(this.filteredVisibleStatuses.slice(min, max).map(({id}) => id)) }, virtualScrollingEnabled() { return useMergedConfigStore().mergedConfig.virtualScrolling