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
@@ -52,7 +52,10 @@ export const SongListInfiniteGrid = forwardRef<any, SongListInfiniteGridProps>(
<ItemGridList
data={data}
gap={gap}
initialTop={scrollOffset ?? 0}
initialTop={{
to: scrollOffset ?? 0,
type: 'offset',
}}
itemsPerRow={itemsPerRow}
itemType={LibraryItem.SONG}
onRangeChanged={onRangeChanged}