Actually make initialTopMostItemIndex make some sense
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
9207930f2c
commit
da5fc0449c
1 changed files with 2 additions and 1 deletions
|
@ -216,8 +216,9 @@ const ScrollableList = React.forwardRef<VirtuosoHandle, IScrollableList>(({
|
||||||
if (initialTopMostItemIndex) {
|
if (initialTopMostItemIndex) {
|
||||||
if (typeof initialTopMostItemIndex === 'number') {
|
if (typeof initialTopMostItemIndex === 'number') {
|
||||||
return {
|
return {
|
||||||
align: 'center',
|
align: 'start',
|
||||||
index: initialTopMostItemIndex,
|
index: initialTopMostItemIndex,
|
||||||
|
offset: 60,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return initialTopMostItemIndex;
|
return initialTopMostItemIndex;
|
||||||
|
|
Loading…
Reference in a new issue