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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user