aboutsummaryrefslogtreecommitdiff
path: root/src/content/scrolls.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/scrolls.js')
-rw-r--r--src/content/scrolls.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/content/scrolls.js b/src/content/scrolls.js
index e640384..2a233c2 100644
--- a/src/content/scrolls.js
+++ b/src/content/scrolls.js
@@ -2,26 +2,26 @@ const SCROLL_DELTA = 48;
const scrollUp = (page, count) => {
let x = page.scrollX;
- var y = page.scrollY - SCROLL_DELTA * count;
+ let y = page.scrollY - SCROLL_DELTA * count;
page.scrollTo(x, y);
};
const scrollDown = (page, count) => {
let x = page.scrollX;
- var y = page.scrollY + SCROLL_DELTA * count;
+ let y = page.scrollY + SCROLL_DELTA * count;
page.scrollTo(x, y);
};
-const scrollToTop = (page) => {
+const scrollTop = (page) => {
let x = page.scrollX;
- var y = page.scrollMaxY;
+ let y = 0;
page.scrollTo(x, y);
};
-const scrollToBottom = (page) => {
+const scrollBottom = (page) => {
let x = page.scrollX;
- var y = 0;
+ let y = page.scrollMaxY;
page.scrollTo(x, y);
};
-export { scrollUp, scrollDown, scrollToTop, scrollToBottom }
+export { scrollUp, scrollDown, scrollTop, scrollBottom }