@cashub/ui 0.38.2 → 0.38.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cashub/ui",
3
- "version": "0.38.2",
3
+ "version": "0.38.3",
4
4
  "private": false,
5
5
  "author": "CasHUB Team",
6
6
  "description": "CasHUB UI components library",
@@ -61,7 +61,7 @@ const InfiniteGridTable = _ref => {
61
61
  return Math.ceil(containerHeight / ROW_HEIGHT);
62
62
  }, [containerHeight]);
63
63
  const startIndex = (0, _react.useMemo)(() => {
64
- const top = wrapperTop + scrollTop;
64
+ const top = Math.max(0, scrollTop - wrapperTop);
65
65
  return Math.max(0, Math.floor(top / ROW_HEIGHT) - OVER_SCAN_COUNT);
66
66
  }, [wrapperTop, scrollTop]);
67
67
  const endIndex = (0, _react.useMemo)(() => {