mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:45:56 +00:00
pgup/pgdn; increase scroll distance to almost entire viewport height (from 90%)
This commit is contained in:
@@ -318,12 +318,12 @@ define(["dojo/_base/declare"], function (declare) {
|
|||||||
if (!App.isCombinedMode()) {
|
if (!App.isCombinedMode()) {
|
||||||
const ci = $("content-insert");
|
const ci = $("content-insert");
|
||||||
if (ci) {
|
if (ci) {
|
||||||
ci.scrollTop += ci.offsetHeight * offset * 0.9;
|
ci.scrollTop += ci.offsetHeight * offset * 0.99;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const hi = $("headlines-frame");
|
const hi = $("headlines-frame");
|
||||||
if (hi) {
|
if (hi) {
|
||||||
hi.scrollTop += hi.offsetHeight * offset * 0.9;
|
hi.scrollTop += hi.offsetHeight * offset * 0.99;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1386,7 +1386,7 @@ define(["dojo/_base/declare"], function (declare) {
|
|||||||
scrollByPages: function (offset) {
|
scrollByPages: function (offset) {
|
||||||
const hi = $("headlines-frame");
|
const hi = $("headlines-frame");
|
||||||
if (hi) {
|
if (hi) {
|
||||||
hi.scrollTop += hi.offsetHeight * offset * 0.9;
|
hi.scrollTop += hi.offsetHeight * offset * 0.99;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
initHeadlinesMenu: function () {
|
initHeadlinesMenu: function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user