diff --git a/app/components/field.tsx b/app/components/field.tsx index 833faa0..089e766 100644 --- a/app/components/field.tsx +++ b/app/components/field.tsx @@ -24,7 +24,10 @@ export function Field() { getScrollElement: () => parentRef.current, }); const columnVirtualizer = useVirtualizer({ - ...rowVirtualizer.options, + count: size, + gap: GAP_SIZE * 16, + estimateSize: () => GRID_SIZE * 16, + getScrollElement: () => parentRef.current, horizontal: true, });