summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-09-11 09:22:46 +0400
committerAndrew Dolgov <[email protected]>2012-09-11 09:23:04 +0400
commitc08367f944afaef8e49aac4bb778b31dbdfcc34b (patch)
tree2fcbe96d6cb483f4ad77e5c482c1195eee0fe706 /js
parent10afc7c63b9c18d457f3ff0b126423911201297f (diff)
tweak infscroll with hsp existing
Diffstat (limited to 'js')
-rw-r--r--js/viewfeed.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js
index 9e43e29cc..53219b159 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))) {