Scroll to overlay from the search

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2022-09-05 13:54:57 +03:00
1 parent f09974fd1f
commit f90ede1026
1 file changed
+4
@@ -83,6 +83,10 @@ export const LogList = observer(({ model }: LogListProps) => {
rowVirtualizer.scrollToIndex(visibleLogs.get().length - 1, { align: 'end', smoothScroll: false });
}, [model.logTabData.get()]);
useEffect(() => {
rowVirtualizer.scrollToIndex(model.searchStore.occurrences[model.searchStore.activeOverlayIndex], { align: 'end', smoothScroll: false });
}, [model.searchStore.activeOverlayIndex])
return (
<div
ref={parentRef}