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);
|
||||
}
|
||||
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);
|
||||
}
|
||||
if (conf['Auto Noko']) {
|
||||
|
||||
@ -2117,7 +2117,7 @@ main =
|
||||
|
||||
# scroll to bottom if post isn't found
|
||||
# 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
|
||||
|
||||
if conf['Auto Noko']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user