Merge pull request #667 from kiwix/issue603

Safer scroll bound detection
This commit is contained in:
Kelson
2022-01-03 19:16:27 +01:00
committed by GitHub

View File

@ -345,7 +345,7 @@
});
async function loadSubset() {
if (window.innerHeight + window.scrollY >= document.body.offsetHeight) {
if (window.innerHeight + window.scrollY >= (document.body.offsetHeight * 0.98)) {
if (incrementalLoadingParams.count) {
loadAndDisplayBooks();
}