diff --git a/4chan_x.user.js b/4chan_x.user.js index 824e08556..76a9350b3 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2256,14 +2256,14 @@ }); }, prev: function() { - if (g.VIEW === 'reply') { + if (g.VIEW === 'thread') { return window.scrollTo(0, 0); } else { return Nav.scroll(-1); } }, next: function() { - if (g.VIEW === 'reply') { + if (g.VIEW === 'thread') { return window.scrollTo(0, d.body.scrollHeight); } else { return Nav.scroll(+1); diff --git a/src/features.coffee b/src/features.coffee index 0ab6eafbc..7bb9dd1ea 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -1043,13 +1043,13 @@ Nav = $.on d, '4chanXInitFinished', -> $.add d.body, span prev: -> - if g.VIEW is 'reply' + if g.VIEW is 'thread' window.scrollTo 0, 0 else Nav.scroll -1 next: -> - if g.VIEW is 'reply' + if g.VIEW is 'thread' window.scrollTo 0, d.body.scrollHeight else Nav.scroll +1