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.
2 parents dfc38ea + 991dd6f commit 71e2b0fCopy full SHA for 71e2b0f
src/index.tsx
@@ -246,15 +246,13 @@ export default class InfiniteScroll extends Component<Props, State> {
246
if (threshold.unit === ThresholdUnits.Pixel) {
247
return (
248
target.scrollTop <=
249
- threshold.value + clientHeight - target.scrollHeight + 1 ||
250
- target.scrollTop === 0
+ threshold.value + clientHeight - target.scrollHeight + 1
251
);
252
}
253
254
255
256
- threshold.value / 100 + clientHeight - target.scrollHeight + 1 ||
257
+ threshold.value / 100 + clientHeight - target.scrollHeight + 1
258
259
260
0 commit comments