From ea3c70f37cfff8e4d21c8bb746f8faafea9bcfe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Fri, 4 Oct 2024 00:04:27 +0200 Subject: [PATCH] Actually improve virtual scroll behavior MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-fe/src/components/scrollable-list.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pl-fe/src/components/scrollable-list.tsx b/packages/pl-fe/src/components/scrollable-list.tsx index edaf7e1aff..f826678bf7 100644 --- a/packages/pl-fe/src/components/scrollable-list.tsx +++ b/packages/pl-fe/src/components/scrollable-list.tsx @@ -197,7 +197,7 @@ const ScrollableList = React.forwardRef, IScrollableList & style={{ position: 'absolute', width: '100%', - transform: `translateY(${item.start}px)`, + transform: `translateY(${item.start - virtualizer.options.scrollMargin}px)`, }} > {renderItem(item.index)}