summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-12-09 12:22:43 +0300
committerAndrew Dolgov <[email protected]>2019-12-09 12:22:43 +0300
commit7a68e4a6f72650c5a9c43cdd49383a1992fc5df9 (patch)
tree778db0405be3a91fb8084ce08ff69c3a99df4837 /js
parent6191c48596138c8cfa6291d178f7a7b12e86285b (diff)
pgup/pgdn; increase scroll distance to almost entire viewport height (from 90%)
Diffstat (limited to 'js')
-rw-r--r--js/Article.js4
-rwxr-xr-xjs/Headlines.js2
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 () {