first thread, prev thread -> prev page
This commit is contained in:
parent
dfed85d6d1
commit
6af9e3587c
@ -824,7 +824,11 @@
|
|||||||
i += delta;
|
i += delta;
|
||||||
}
|
}
|
||||||
if (i === -1) {
|
if (i === -1) {
|
||||||
window.scrollTo(0, 0);
|
if (g.PAGENUM === 0) {
|
||||||
|
window.scrollTo(0, 0);
|
||||||
|
} else {
|
||||||
|
window.location = "" + (g.PAGENUM - 1) + "#p0";
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (delta === +1) {
|
if (delta === +1) {
|
||||||
|
|||||||
@ -613,7 +613,10 @@ nav =
|
|||||||
i += delta
|
i += delta
|
||||||
|
|
||||||
if i is -1
|
if i is -1
|
||||||
window.scrollTo 0, 0
|
if g.PAGENUM is 0
|
||||||
|
window.scrollTo 0, 0
|
||||||
|
else
|
||||||
|
window.location = "#{g.PAGENUM - 1}#p0"
|
||||||
return
|
return
|
||||||
if delta is +1
|
if delta is +1
|
||||||
# if we're at the last thread, or we're at the bottom of the page.
|
# if we're at the last thread, or we're at the bottom of the page.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user