mirror of https://github.com/kiwix/libkiwix.git
Merge pull request #667 from kiwix/issue603
Safer scroll bound detection
This commit is contained in:
commit
d29611ed75
|
@ -345,7 +345,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
async function loadSubset() {
|
async function loadSubset() {
|
||||||
if (window.innerHeight + window.scrollY >= document.body.offsetHeight) {
|
if (window.innerHeight + window.scrollY >= (document.body.offsetHeight * 0.98)) {
|
||||||
if (incrementalLoadingParams.count) {
|
if (incrementalLoadingParams.count) {
|
||||||
loadAndDisplayBooks();
|
loadAndDisplayBooks();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue