From: Andrew Dolgov Date: Tue, 11 Sep 2012 05:22:46 +0000 (+0400) Subject: tweak infscroll with hsp existing X-Git-Tag: 1.6.0~50 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c08367f944afaef8e49aac4bb778b31dbdfcc34b;p=tt-rss.git tweak infscroll with hsp existing --- 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))) {