don't scroll back up to offscreen textarea

This commit is contained in:
Toks
2013-05-14 08:48:58 -04:00
parent da197bb659
commit 54ca90a381
+4 -1
View File
@@ -226,7 +226,10 @@
Danbooru.RelatedTag.process_artist(Danbooru.RelatedTag.recent_artist);
}
$field.focus();
if ($(window).scrollTop() <= $field.offset().top) {
$field.focus();
}
e.preventDefault();
}