Skip to content

Commit

Permalink
fix: increase token list overscan
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Aug 22, 2022
1 parent fea10e0 commit 440aabd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const VirtualizedTokenList: FC<VirtualizedTokenListProps> = ({
const { getVirtualItems, getTotalSize, scrollToIndex } = useVirtualizer({
count: tokens.length,
getScrollElement: () => scrollElementRef.current,
overscan: 5,
overscan: 10,
paddingEnd: 12,
estimateSize: (index) => {
// heigth of TokenListItem
Expand Down

0 comments on commit 440aabd

Please sign in to comment.