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 d92ffe3 commit ce120b3Copy full SHA for ce120b3
lib/index.js
@@ -229,8 +229,7 @@ return /******/ (function(modules) { // webpackBootstrap
229
230
var clientHeight = target === document.body || target === document.documentElement ? window.screen.availHeight : target.clientHeight;
231
232
- var scrolled = scrollThreshold * (target.scrollHeight - target.scrollTop);
233
- return scrolled <= clientHeight;
+ return target.scrollTop + clientHeight >= scrollThreshold * target.scrollHeight;
234
}
235
}, {
236
key: 'onScrollListener',
0 commit comments