aboutsummaryrefslogtreecommitdiff
path: root/src/content/scrolls.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-11-13 20:15:53 +0900
committerGitHub <noreply@github.com>2017-11-13 20:15:53 +0900
commit44bbadde3ac3241420fa1a7b634d02f9226225fd (patch)
treeaa151e12a7eb0bdcc22bc92302f4cf3e0a521319 /src/content/scrolls.js
parentc7b05482f33cc778e1966faa9354ea46b490a115 (diff)
parentc202ab052917794b7d3f7af3413d2d0fcd1b3bba (diff)
Merge pull request #150 from ueokande/qa-0.5
QA 0.5
Diffstat (limited to 'src/content/scrolls.js')
-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);
};