summaryrefslogtreecommitdiff
path: root/js/Headlines.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Headlines.js')
-rwxr-xr-xjs/Headlines.js6
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")) {