mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
set playqueue scroll to center
This commit is contained in:
@@ -57,7 +57,7 @@ export const PlayQueue = forwardRef<ItemListHandle, QueueProps>(({ listKey, sear
|
||||
);
|
||||
|
||||
if (songIndex !== -1) {
|
||||
tableRef.current.scrollToIndex(songIndex);
|
||||
tableRef.current.scrollToIndex(songIndex, { align: 'center' });
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user