refactor grid list to support index offset

This commit is contained in:
jeffvli
2025-11-14 01:14:35 -08:00
parent 6d6caa0406
commit da2109b310
6 changed files with 39 additions and 9 deletions
@@ -57,7 +57,10 @@ export const GenreListInfiniteGrid = forwardRef<any, GenreListInfiniteGridProps>
<ItemGridList
data={data}
gap={gap}
initialTop={scrollOffset ?? 0}
initialTop={{
to: scrollOffset ?? 0,
type: 'offset',
}}
itemsPerRow={itemsPerRow}
itemType={LibraryItem.GENRE}
onRangeChanged={onRangeChanged}