fix #50
This commit is contained in:
parent
5fed5f4a63
commit
f93e46cbe6
@ -838,8 +838,10 @@
|
||||
}
|
||||
if (delta === +1) {
|
||||
if (i === nav.threads.length || (innerHeight + pageYOffset === d.body.scrollHeight)) {
|
||||
window.location = "" + (g.PAGENUM + 1) + "#0";
|
||||
return;
|
||||
if ($('table.pages input[value="Next"]')) {
|
||||
window.location = "" + (g.PAGENUM + 1) + "#0";
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
top = nav.threads[i].getBoundingClientRect().top;
|
||||
|
||||
@ -571,8 +571,6 @@ keybinds =
|
||||
return
|
||||
|
||||
nav =
|
||||
#TODO page nav
|
||||
#FIXME /b/
|
||||
# ◀ ▶
|
||||
init: ->
|
||||
span = $.el 'span',
|
||||
@ -627,8 +625,10 @@ nav =
|
||||
# if we're at the last thread, or we're at the bottom of the page.
|
||||
# kind of hackish, what we really need to do is make nav.getThread smarter.
|
||||
if i is nav.threads.length or (innerHeight + pageYOffset == d.body.scrollHeight)
|
||||
window.location = "#{g.PAGENUM + 1}#0"
|
||||
return
|
||||
if $ 'table.pages input[value="Next"]'
|
||||
window.location = "#{g.PAGENUM + 1}#0"
|
||||
return
|
||||
#TODO sfx
|
||||
|
||||
{top} = nav.threads[i].getBoundingClientRect()
|
||||
window.scrollBy 0, top
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user