diff options
Diffstat (limited to 'weblog/templates')
-rwxr-xr-x | weblog/templates/weblog/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weblog/templates/weblog/index.html b/weblog/templates/weblog/index.html index 4808ec2..9568e9d 100755 --- a/weblog/templates/weblog/index.html +++ b/weblog/templates/weblog/index.html @@ -161,7 +161,7 @@ {% if infinite_load %}
window.addEventListener("scroll", function(){
if (current_page != last_page){
- if(document.documentElement.scrollHeight - document.documentElement.scrollTop === document.documentElement.clientHeight)
+ if(document.documentElement.scrollHeight - document.documentElement.scrollTop - 10 <= document.documentElement.clientHeight)
loadNextPage();
}
});
|