summaryrefslogtreecommitdiff
path: root/js/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-19 19:13:56 +0400
committerAndrew Dolgov <[email protected]>2013-03-19 19:14:28 +0400
commitd2db81a5f67dfc13bab7cf379d1182f7aa794eb1 (patch)
treeb589f3a6e5ec3a1976cfb76c87b8e582d79f47c6 /js/tt-rss.js
parentd5b82f3ebba0fa76cd6fcc6e552b4cd9f90ef8f0 (diff)
improve hotkey buffer scrolling speed; bind viewport scrolling to shift-arrows
Diffstat (limited to 'js/tt-rss.js')
-rw-r--r--js/tt-rss.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/js/tt-rss.js b/js/tt-rss.js
index a8552d173..e9bc9d412 100644
--- a/js/tt-rss.js
+++ b/js/tt-rss.js
@@ -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();