Merge pull request #95 from dandersson/scroll_length

Default scroll length closer to expected (i.e. browser default).
This commit is contained in:
Andrew Dolgov 2013-03-27 05:28:53 -07:00
commit 2e2f672e55

View 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()) {