Skip to content

Commit

Permalink
fix: jank horizontal scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
lewxdev committed Aug 12, 2024
1 parent 333743f commit b780777
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/components/field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

Expand Down

0 comments on commit b780777

Please sign in to comment.