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 2bd0406 commit a30ccbaCopy full SHA for a30ccba
app/index.js
@@ -139,8 +139,7 @@ export default class InfiniteScroll extends Component {
139
const clientHeight = (target === document.body || target === document.documentElement)
140
? window.screen.availHeight : target.clientHeight;
141
142
- const scrolled = scrollThreshold * (target.scrollHeight - target.scrollTop);
143
- return scrolled <= clientHeight;
+ return (target.scrollTop + clientHeight) >= scrollThreshold * target.scrollHeight;
144
}
145
146
onScrollListener (event) {
0 commit comments