diff --git a/src/index.tsx b/src/index.tsx index 2782fbb..3e93ee1 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -268,7 +268,7 @@ export default class InfiniteScroll extends Component { return ( target.scrollTop <= - threshold.value / 100 + clientHeight - target.scrollHeight + 1 + clientHeight - (threshold.value / 100) * target.scrollHeight + 1 ); }