add double click play to album detail

- add mediaPlayByIndex
- add index property to item list controls args
- add overrides to item list controls
This commit is contained in:
jeffvli
2025-11-22 22:27:45 -08:00
parent 0aee428aaf
commit 646eb4a3b0
15 changed files with 131 additions and 22 deletions
@@ -255,6 +255,7 @@ export interface ItemGridListProps {
onRangeChanged?: (range: { startIndex: number; stopIndex: number }) => void;
onScroll?: (offset: number, direction: 'down' | 'up') => void;
onScrollEnd?: (offset: number, direction: 'down' | 'up') => void;
overrideControls?: Partial<ItemControls>;
ref?: Ref<ItemListHandle>;
rows?: ItemCardProps['rows'];
}
@@ -272,6 +273,7 @@ export const ItemGridList = ({
onRangeChanged,
onScroll,
onScrollEnd,
overrideControls,
ref,
rows,
}: ItemGridListProps) => {
@@ -366,7 +368,7 @@ export const ItemGridList = ({
throttledSetTableMeta(containerWidth, data.length, setTableMeta);
}, [containerWidth, data.length, throttledSetTableMeta]);
const controls = useDefaultItemListControls();
const controls = useDefaultItemListControls({ overrides: overrideControls });
const scrollToIndex = useCallback(
(