mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +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) {
|
if (songIndex !== -1) {
|
||||||
tableRef.current.scrollToIndex(songIndex);
|
tableRef.current.scrollToIndex(songIndex, { align: 'center' });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user