mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Disable smooth scrolling
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
This commit is contained in:
parent
e82f83fa5a
commit
aeb0127a8f
@ -29,12 +29,14 @@ export const LogList = observer(({ model }: LogListProps) => {
|
||||
const topLineRef = useRef<HTMLDivElement>(null);
|
||||
const bottomLineRef = useRef<HTMLDivElement>(null);
|
||||
const [toBottomVisible, setButtonVisibility] = useJumpToBottomButton(parentRef.current);
|
||||
const uniqRowKey = useRefreshListOnDataChange(model.logTabData.get());
|
||||
|
||||
const rowVirtualizer = useVirtualizer({
|
||||
count: visibleLogs.get().length,
|
||||
getScrollElement: () => parentRef.current,
|
||||
estimateSize: () => 38,
|
||||
overscan: 5,
|
||||
enableSmoothScroll: false,
|
||||
});
|
||||
|
||||
const scrollTo = (index: number) => {
|
||||
@ -52,13 +54,8 @@ export const LogList = observer(({ model }: LogListProps) => {
|
||||
};
|
||||
|
||||
useInitialScrollToBottom(model, scrollToBottom);
|
||||
|
||||
const uniqRowKey = useRefreshListOnDataChange(model.logTabData.get());
|
||||
|
||||
useScrollOnSearch(model.searchStore, scrollTo);
|
||||
|
||||
useStickToBottomOnLogsLoad({ bottomLineRef, model, scrollToBottom });
|
||||
|
||||
useOnScrollTop({ topLineRef, model, scrollTo });
|
||||
|
||||
return (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user