mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 07:25:46 +01:00
upgraded userlist to 3 sorted sets, run node app -upgrade after updating to this commit, added infinite scrolling to all user pages, added ops per second to redis page, changed the percentage to 90% for infinite scrolling to kick in
This commit is contained in:
@@ -122,10 +122,9 @@
|
||||
}
|
||||
|
||||
$(window).off('scroll').on('scroll', function(ev) {
|
||||
var windowHeight = document.body.offsetHeight - $(window).height(),
|
||||
half = windowHeight / 2;
|
||||
var bottom = (document.body.offsetHeight - $(window).height()) * 0.9;
|
||||
|
||||
if (document.body.scrollTop > half && !loadingMoreTopics) {
|
||||
if (document.body.scrollTop > bottom && !loadingMoreTopics) {
|
||||
loadMoreTopics(cid);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user