diff --git a/src/components/ContinuationView.tsx b/src/components/ContinuationView.tsx index 226afca..87d1b33 100644 --- a/src/components/ContinuationView.tsx +++ b/src/components/ContinuationView.tsx @@ -25,7 +25,7 @@ export const ContinuationView: FC = () => { useEffect(() => { ebus?.addListener('navigate_offset', ({ filename }) => { let index = indexOf(filename, pluck('filename', files)); - virtualListRef.current?.scrollToIndex({ index, align: 'start', behavior: 'smooth' }); + virtualListRef.current?.scrollToIndex({ index, align: 'start' }); }); ebus?.addListener('reset_views', () => { virtualListRef.current?.scrollTo({ top: 0 }); diff --git a/src/components/FileList.tsx b/src/components/FileList.tsx index 17800bb..df0461d 100644 --- a/src/components/FileList.tsx +++ b/src/components/FileList.tsx @@ -27,8 +27,7 @@ export const FileList: FC = () => { let firstActivedIndex = indexOf(firstActived, pluck('filename', files)); listRef.current?.scrollToIndex({ index: firstActivedIndex, - align: 'center', - behavior: 'auto' + align: 'center' }); }, [activeFiles]);