tweak infscroll with hsp existing
This commit is contained in:
parent
10afc7c63b
commit
c08367f944
|
@ -1117,7 +1117,7 @@ function headlines_scroll_handler(e) {
|
||||||
var hsp = $("headlines-spacer");
|
var hsp = $("headlines-spacer");
|
||||||
|
|
||||||
if (!_infscroll_disable) {
|
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.scrollHeight != 0 &&
|
||||||
((e.scrollTop + e.offsetHeight) / e.scrollHeight >= 0.7))) {
|
((e.scrollTop + e.offsetHeight) / e.scrollHeight >= 0.7))) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue