Scroll only when you're supposed to.
This commit is contained in:
parent
c9c24fbdbe
commit
7d4fda2f56
@ -2731,7 +2731,7 @@
|
|||||||
$.bind(form, 'submit', qr.submit);
|
$.bind(form, 'submit', qr.submit);
|
||||||
}
|
}
|
||||||
threading.init();
|
threading.init();
|
||||||
if ((id = location.hash.slice(1)) && !$.id(id)) {
|
if ((id = location.hash.slice(1)) && !$.id(id) && !/\D/.test(id)) {
|
||||||
scrollTo(0, d.body.scrollHeight);
|
scrollTo(0, d.body.scrollHeight);
|
||||||
}
|
}
|
||||||
if (conf['Auto Noko']) {
|
if (conf['Auto Noko']) {
|
||||||
|
|||||||
@ -2117,7 +2117,7 @@ main =
|
|||||||
|
|
||||||
# scroll to bottom if post isn't found
|
# scroll to bottom if post isn't found
|
||||||
# thumbnail generation takes time
|
# thumbnail generation takes time
|
||||||
if (id = location.hash[1..]) and !$.id id
|
if (id = location.hash[1..]) and !$.id(id) and !/\D/.test id
|
||||||
scrollTo 0, d.body.scrollHeight
|
scrollTo 0, d.body.scrollHeight
|
||||||
|
|
||||||
if conf['Auto Noko']
|
if conf['Auto Noko']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user