From cee09850f161800eb2ddfe7d420a34d122a7798e Mon Sep 17 00:00:00 2001 From: Daniel Andersson Date: Wed, 27 Mar 2013 12:17:04 +0100 Subject: [PATCH] Default scroll length closer to expected (i.e. browser default). --- js/tt-rss.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()) { -- 2.39.5