Eh, the debounce is kinda pointless.

This commit is contained in:
Zixaphir 2014-03-13 02:13:41 -07:00
parent 9dec38cb16
commit 4fd7f628f5
3 changed files with 5 additions and 5 deletions

View File

@ -2706,7 +2706,7 @@
return $.rmClass(doc, 'index-loading');
});
},
scroll: $.debounce(500, function() {
scroll: function() {
if (Index.req || Conf['Index Mode'] !== 'infinite' || (window.scrollY <= doc.scrollHeight - (300 + window.innerHeight)) || g.VIEW === 'thread') {
return;
}
@ -2715,7 +2715,7 @@
return Index.endNotice();
}
return Index.buildIndex(true);
}),
},
endNotice: (function() {
var notify, reset;
notify = false;

View File

@ -2765,7 +2765,7 @@
return $.rmClass(doc, 'index-loading');
});
},
scroll: $.debounce(500, function() {
scroll: function() {
if (Index.req || Conf['Index Mode'] !== 'infinite' || (window.scrollY <= doc.scrollHeight - (300 + window.innerHeight)) || g.VIEW === 'thread') {
return;
}
@ -2774,7 +2774,7 @@
return Index.endNotice();
}
return Index.buildIndex(true);
}),
},
endNotice: (function() {
var notify, reset;
notify = false;

View File

@ -151,7 +151,7 @@ Index =
$.after $.id('delform'), Index.pagelist
$.rmClass doc, 'index-loading'
scroll: $.debounce 500, ->
scroll: ->
return if Index.req or Conf['Index Mode'] isnt 'infinite' or (window.scrollY <= doc.scrollHeight - (300 + window.innerHeight)) or g.VIEW is 'thread'
Index.pageNum = (Index.pageNum or Index.getCurrentPage()) + 1 # Avoid having to pushState to keep track of the current page