improve hotkey buffer scrolling speed; bind viewport scrolling to shift-arrows

This commit is contained in:
Andrew Dolgov
2013-03-19 19:13:56 +04:00
parent d5b82f3ebb
commit d2db81a5f6
3 changed files with 10 additions and 4 deletions
+6 -2
View File
@@ -659,10 +659,14 @@ function hotkey_handler(e) {
catchupRelativeToArticle(0);
return false;
case "article_scroll_down":
scrollArticle(50);
var ctr = $("content_insert") ? $("content_insert") : $("headlines-frame");
scrollArticle(ctr.offsetHeight/3);
return false;
case "article_scroll_up":
scrollArticle(-50);
var ctr = $("content_insert") ? $("content_insert") : $("headlines-frame");
scrollArticle(-ctr.offsetHeight/3);
return false;
case "close_article":
closeArticlePanel();