ScrollableList: fix desync scroll position, add 200px overscan

dnd
Alex Gleason 2022-06-01 19:36:55 -05:00
rodzic 3d605913e8
commit 577c391417
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -161,6 +161,7 @@ const ScrollableList = React.forwardRef<VirtuosoHandle, IScrollableList>(({
const handleRangeChange = (range: ListRange) => {
topIndex.current = range.startIndex;
handleScroll();
};
/** Render the actual Virtuoso list */
@ -190,6 +191,7 @@ const ScrollableList = React.forwardRef<VirtuosoHandle, IScrollableList>(({
Item,
Footer: loadMore,
}}
overscan={{ main: 200, reverse: 200 }}
/>
);