From 074f101fceef7ca5983a405b185954c0a6ad6436 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Thu, 13 Mar 2014 02:13:41 -0700 Subject: [PATCH] Eh, the debounce is kinda pointless. Conflicts: builds/4chan-X.user.js builds/crx/script.js src/General/Index.coffee --- src/General/Index.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 780a8ca62..31604f3d4 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -121,7 +121,7 @@ Index = $('.returnlink a', Index.navLinks).href = $('.returnlink a', Index.navLinksBot).href = "//boards.4chan.org/#{g.BOARD}/" $('.cataloglink a', Index.navLinks).href = $('.cataloglink a', Index.navLinksBot).href = "//boards.4chan.org/#{g.BOARD}/catalog" - 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.getCurrentPage() unless Index.pageNum? # Avoid having to pushState to keep track of the current page