tweak infscroll with hsp existing

This commit is contained in:
Andrew Dolgov 2012-09-11 09:22:46 +04:00
parent 10afc7c63b
commit c08367f944
1 changed files with 1 additions and 1 deletions

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