diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-11-12 22:16:25 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-11-12 22:16:25 +0900 |
commit | 91ea58008c2d7e64ffca4acf20749c8f7b3eb211 (patch) | |
tree | c9fc198fc193b20cd413fe8213ce6f0a10871465 | |
parent | 77e800feaafde95019c0d07082017adc0982202d (diff) |
fix 0/$
-rw-r--r-- | src/content/scrolls.js | 4 |
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); }; |