Actually improve virtual scroll behavior

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-10-04 00:04:27 +02:00
parent 6bb4dc20a4
commit ea3c70f37c

View file

@ -197,7 +197,7 @@ const ScrollableList = React.forwardRef<Virtualizer<any, any>, IScrollableList &
style={{
position: 'absolute',
width: '100%',
transform: `translateY(${item.start}px)`,
transform: `translateY(${item.start - virtualizer.options.scrollMargin}px)`,
}}
>
{renderItem(item.index)}