1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 18:35:57 +00:00

add hotkeys to scroll headlines/articles (whichever is active) by one page

This commit is contained in:
Andrew Dolgov
2019-12-04 15:50:49 +03:00
parent cb92f56b13
commit 6913158b82
3 changed files with 24 additions and 2 deletions

View File

@@ -314,6 +314,20 @@ define(["dojo/_base/declare"], function (declare) {
else
return 0;
},
scrollPages: function (offset) {
if (!App.isCombinedMode()) {
const ci = $("content-insert");
if (ci) {
ci.scrollTop += ci.offsetHeight * offset * 0.9;
}
} else {
const hi = $("headlines-frame");
if (hi) {
hi.scrollTop += hi.offsetHeight * offset * 0.9;
}
}
},
scroll: function (offset) {
if (!App.isCombinedMode()) {
const ci = $("content-insert");