1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-28 12:10:52 +02:00

tweak infscroll with hsp existing

This commit is contained in:
Andrew Dolgov 2012-09-11 09:22:46 +04:00
parent 10afc7c63b
commit c08367f944

View 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))) {