Skip to content

Commit ce120b3

Browse files
committed
Adds built assets
1 parent d92ffe3 commit ce120b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,7 @@ return /******/ (function(modules) { // webpackBootstrap
229229

230230
var clientHeight = target === document.body || target === document.documentElement ? window.screen.availHeight : target.clientHeight;
231231

232-
var scrolled = scrollThreshold * (target.scrollHeight - target.scrollTop);
233-
return scrolled <= clientHeight;
232+
return target.scrollTop + clientHeight >= scrollThreshold * target.scrollHeight;
234233
}
235234
}, {
236235
key: 'onScrollListener',

0 commit comments

Comments
 (0)