We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40ac121 commit a42592bCopy full SHA for a42592b
src/hooks/useVisibleRange.ts
@@ -38,7 +38,7 @@ export default function useVisibleRange(
38
let endIndex = len;
39
for (let i = 0; i < len; i += 1) {
40
const offset = tabOffsets.get(tabs[i].key) || DEFAULT_SIZE;
41
- if (offset[position] + offset[charUnit] > transformSize + visibleTabContentValue) {
+ if (Math.floor(offset[position] + offset[charUnit]) > Math.floor(transformSize + visibleTabContentValue)) {
42
endIndex = i - 1;
43
break;
44
}
0 commit comments