aboutsummaryrefslogtreecommitdiff
path: root/src/content
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-26 11:56:46 +0000
committerGitHub <noreply@github.com>2017-10-26 11:56:46 +0000
commit20318b56704aba35831050f331f122c6895c1935 (patch)
treeb1716829be0ef2866def0ace05b16ca7ba30dfd9 /src/content
parent40a33adf52e0767cc6ecba350112c3ded53e9355 (diff)
parent73b4bc380d1ed5f7ef61d078ffd3e4a187c3c07e (diff)
Merge pull request #96 from ueokande/QA
Testing for 0.3
Diffstat (limited to 'src/content')
-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 eda1946..a975296 100644
--- a/src/content/scrolls.js
+++ b/src/content/scrolls.js
@@ -75,9 +75,9 @@ const scrollHorizonally = (win, count) => {
const scrollPages = (win, count) => {
let target = scrollTarget(win);
- let height = target.innerHeight;
+ let height = target.clientHeight;
let x = target.scrollLeft;
- let y = target.scrollLeft + height * count;
+ let y = target.scrollTop + height * count;
target.scrollTo(x, y);
};