tweak auto catchup a bit
This commit is contained in:
parent
5b54efce2f
commit
79ddf6aa77
1 changed files with 9 additions and 3 deletions
12
viewfeed.js
12
viewfeed.js
|
@ -1108,6 +1108,7 @@ function headlines_scroll_handler(e) {
|
||||||
__("Loading, please wait...");
|
__("Loading, please wait...");
|
||||||
|
|
||||||
loadMoreHeadlines();
|
loadMoreHeadlines();
|
||||||
|
return;
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -1125,13 +1126,18 @@ function headlines_scroll_handler(e) {
|
||||||
|
|
||||||
if (catchup_id_batch.indexOf(id) == -1)
|
if (catchup_id_batch.indexOf(id) == -1)
|
||||||
catchup_id_batch.push(id);
|
catchup_id_batch.push(id);
|
||||||
|
|
||||||
|
//console.log("auto_catchup_batch: " + catchup_id_batch.toString());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (catchup_id_batch.length > 0 && !_infscroll_request_sent) {
|
if (catchup_id_batch.length > 0) {
|
||||||
window.clearTimeout(catchup_timeout_id);
|
window.clearTimeout(catchup_timeout_id);
|
||||||
catchup_timeout_id = window.setTimeout('catchupBatchedArticles()',
|
|
||||||
1000);
|
if (!_infscroll_request_sent) {
|
||||||
|
catchup_timeout_id = window.setTimeout('catchupBatchedArticles()',
|
||||||
|
2000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue