diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 07a70dd23..3fe756d68 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -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; diff --git a/builds/crx/script.js b/builds/crx/script.js index 0833fd256..dd748b10c 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -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; diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 116065b54..718b4b315 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -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