aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-11-12 22:16:25 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-11-12 22:16:25 +0900
commit91ea58008c2d7e64ffca4acf20749c8f7b3eb211 (patch)
treec9fc198fc193b20cd413fe8213ce6f0a10871465 /src
parent77e800feaafde95019c0d07082017adc0982202d (diff)
fix 0/$
Diffstat (limited to 'src')
-rw-r--r--src/content/scrolls.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content/scrolls.js b/src/content/scrolls.js
index d88320f..ef38273 100644
--- a/src/content/scrolls.js
+++ b/src/content/scrolls.js
@@ -104,14 +104,14 @@ const scrollBottom = (win) => {
const scrollHome = (win) => {
let target = scrollTarget(win);
let x = 0;
- let y = target.scrollLeft;
+ let y = target.scrollTop;
target.scrollTo(x, y);
};
const scrollEnd = (win) => {
let target = scrollTarget(win);
let x = target.scrollWidth;
- let y = target.scrollLeft;
+ let y = target.scrollTop;
target.scrollTo(x, y);
};