1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 11:05:55 +00:00

pgup/pgdown hotkey normalization:

- pgup/pgdown without modifier scroll headline buffer
- shift+pgup/pgdown work similarly to shift+up/down but operating on pages
This commit is contained in:
Andrew Dolgov
2019-12-05 17:00:02 +03:00
parent f30287be65
commit 1902a7dcb0
4 changed files with 19 additions and 5 deletions

View File

@@ -1381,6 +1381,12 @@ define(["dojo/_base/declare"], function (declare) {
}
},
scrollByPages: function (offset) {
const hi = $("headlines-frame");
if (hi) {
hi.scrollTop += hi.offsetHeight * offset * 0.9;
}
},
initHeadlinesMenu: function () {
if (!dijit.byId("headlinesMenu")) {