From: Daniel Andersson Date: Wed, 27 Mar 2013 11:17:04 +0000 (+0100) Subject: Default scroll length closer to expected (i.e. browser default). X-Git-Tag: 1.7.6~242^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=cee09850f161800eb2ddfe7d420a34d122a7798e;p=tt-rss.git Default scroll length closer to expected (i.e. browser default). --- diff --git a/js/tt-rss.js b/js/tt-rss.js index 7f8a7b61..8ba8f6bc 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -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()) {