From 7a68e4a6f72650c5a9c43cdd49383a1992fc5df9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 9 Dec 2019 12:22:43 +0300 Subject: [PATCH] pgup/pgdn; increase scroll distance to almost entire viewport height (from 90%) --- js/Article.js | 4 ++-- js/Headlines.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/Article.js b/js/Article.js index 1135fde02..468388789 100644 --- a/js/Article.js +++ b/js/Article.js @@ -318,12 +318,12 @@ define(["dojo/_base/declare"], function (declare) { if (!App.isCombinedMode()) { const ci = $("content-insert"); if (ci) { - ci.scrollTop += ci.offsetHeight * offset * 0.9; + ci.scrollTop += ci.offsetHeight * offset * 0.99; } } else { const hi = $("headlines-frame"); if (hi) { - hi.scrollTop += hi.offsetHeight * offset * 0.9; + hi.scrollTop += hi.offsetHeight * offset * 0.99; } } diff --git a/js/Headlines.js b/js/Headlines.js index 07bebe1f9..52c1c5842 100755 --- a/js/Headlines.js +++ b/js/Headlines.js @@ -1386,7 +1386,7 @@ define(["dojo/_base/declare"], function (declare) { scrollByPages: function (offset) { const hi = $("headlines-frame"); if (hi) { - hi.scrollTop += hi.offsetHeight * offset * 0.9; + hi.scrollTop += hi.offsetHeight * offset * 0.99; } }, initHeadlinesMenu: function () {