Skip to content

Commit e29b9da

Browse files
authored
Move heuristic
1 parent 27ddd77 commit e29b9da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/List.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function BaseList<T>(
7575
});
7676

7777
// constants
78-
const isScrollHorizontal = (innerRef.current?.scrollWidth || 0) + 16 > innerWidth;
78+
const isScrollHorizontal = (innerRef.current?.scrollWidth || 0) > innerWidth + 16;
7979
const items = virtualizer.getVirtualItems();
8080
const { fixedWidth, remainingCols } = widthConstants;
8181

0 commit comments

Comments
 (0)