From c08367f944afaef8e49aac4bb778b31dbdfcc34b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 11 Sep 2012 09:22:46 +0400 Subject: [PATCH] tweak infscroll with hsp existing --- js/viewfeed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/viewfeed.js b/js/viewfeed.js index 9e43e29c..53219b15 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -1117,7 +1117,7 @@ function headlines_scroll_handler(e) { var hsp = $("headlines-spacer"); if (!_infscroll_disable) { - if ((hsp && e.scrollTop + e.offsetHeight > hsp.offsetTop) || + if ((hsp && e.scrollTop + e.offsetHeight >= hsp.offsetTop - hsp.offsetHeight) || (e.scrollHeight != 0 && ((e.scrollTop + e.offsetHeight) / e.scrollHeight >= 0.7))) { -- 2.39.5