Eh, the debounce is kinda pointless.
This commit is contained in:
parent
9dec38cb16
commit
4fd7f628f5
@ -2706,7 +2706,7 @@
|
|||||||
return $.rmClass(doc, 'index-loading');
|
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') {
|
if (Index.req || Conf['Index Mode'] !== 'infinite' || (window.scrollY <= doc.scrollHeight - (300 + window.innerHeight)) || g.VIEW === 'thread') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -2715,7 +2715,7 @@
|
|||||||
return Index.endNotice();
|
return Index.endNotice();
|
||||||
}
|
}
|
||||||
return Index.buildIndex(true);
|
return Index.buildIndex(true);
|
||||||
}),
|
},
|
||||||
endNotice: (function() {
|
endNotice: (function() {
|
||||||
var notify, reset;
|
var notify, reset;
|
||||||
notify = false;
|
notify = false;
|
||||||
|
|||||||
@ -2765,7 +2765,7 @@
|
|||||||
return $.rmClass(doc, 'index-loading');
|
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') {
|
if (Index.req || Conf['Index Mode'] !== 'infinite' || (window.scrollY <= doc.scrollHeight - (300 + window.innerHeight)) || g.VIEW === 'thread') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -2774,7 +2774,7 @@
|
|||||||
return Index.endNotice();
|
return Index.endNotice();
|
||||||
}
|
}
|
||||||
return Index.buildIndex(true);
|
return Index.buildIndex(true);
|
||||||
}),
|
},
|
||||||
endNotice: (function() {
|
endNotice: (function() {
|
||||||
var notify, reset;
|
var notify, reset;
|
||||||
notify = false;
|
notify = false;
|
||||||
|
|||||||
@ -151,7 +151,7 @@ Index =
|
|||||||
$.after $.id('delform'), Index.pagelist
|
$.after $.id('delform'), Index.pagelist
|
||||||
$.rmClass doc, 'index-loading'
|
$.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'
|
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
|
Index.pageNum = (Index.pageNum or Index.getCurrentPage()) + 1 # Avoid having to pushState to keep track of the current page
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user