diff options
author | Andrew Dolgov <[email protected]> | 2019-12-05 17:00:02 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-12-05 17:00:17 +0300 |
commit | 1902a7dcb0d4b0fc00a1c2ed86f4b8ab757f4508 (patch) | |
tree | feded37649207e0867079a94b946fdb6ca9729b0 /js/Headlines.js | |
parent | f30287be652295d18e632316a66866697c26638c (diff) |
pgup/pgdown hotkey normalization:
- pgup/pgdown without modifier scroll headline buffer
- shift+pgup/pgdown work similarly to shift+up/down but operating on pages
Diffstat (limited to 'js/Headlines.js')
-rwxr-xr-x | js/Headlines.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/Headlines.js b/js/Headlines.js index 3c98bef6c..4382e04f7 100755 --- a/js/Headlines.js +++ b/js/Headlines.js @@ -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")) { |