From 11b3c6ff961631309b72e86eddd1d70ce539474a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a?= Date: Tue, 9 Oct 2018 15:18:48 +0300 Subject: improvement on responsiveness of infinite load --- weblog/templates/weblog/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'weblog') 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(); } }); -- cgit v1.2.3