]> git.wh0rd.org Git - tt-rss.git/commitdiff
Default scroll length closer to expected (i.e. browser default).
authorDaniel Andersson <sskraep@gmail.com>
Wed, 27 Mar 2013 11:17:04 +0000 (12:17 +0100)
committerDaniel Andersson <sskraep@gmail.com>
Wed, 27 Mar 2013 11:17:04 +0000 (12:17 +0100)
js/tt-rss.js

index 7f8a7b61a0910fa269a4b6287ec8a2bd1c4f4657..8ba8f6bcf3921144d9e0ab9afd689783c4401a77 100644 (file)
@@ -325,12 +325,12 @@ function init() {
                hotkey_actions["article_scroll_down"] = function() {
                                var ctr = $("content_insert") ? $("content_insert") : $("headlines-frame");
 
-                               scrollArticle(ctr.offsetHeight/3);
+                               scrollArticle(40);
                };
                hotkey_actions["article_scroll_up"] = function() {
                                var ctr = $("content_insert") ? $("content_insert") : $("headlines-frame");
 
-                               scrollArticle(-ctr.offsetHeight/3);
+                               scrollArticle(-40);
                };
                hotkey_actions["close_article"] = function() {
                                if (isCdmMode()) {