]> git.wh0rd.org Git - tt-rss.git/commitdiff
tweak infscroll with hsp existing
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 11 Sep 2012 05:22:46 +0000 (09:22 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 11 Sep 2012 05:23:04 +0000 (09:23 +0400)
js/viewfeed.js

index 9e43e29cc94e0e45344fb66b3a1706c2ec1ef3fd..53219b1594d08d75846c6d1a8b0ae0970a43bf4c 100644 (file)
@@ -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))) {