diff --git a/src/index.tsx b/src/index.tsx index fc7912d..43096c7 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -246,15 +246,13 @@ export default class InfiniteScroll extends Component { if (threshold.unit === ThresholdUnits.Pixel) { return ( target.scrollTop <= - threshold.value + clientHeight - target.scrollHeight + 1 || - target.scrollTop === 0 + threshold.value + clientHeight - target.scrollHeight + 1 ); } return ( target.scrollTop <= - threshold.value / 100 + clientHeight - target.scrollHeight + 1 || - target.scrollTop === 0 + threshold.value / 100 + clientHeight - target.scrollHeight + 1 ); }