diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-26 11:56:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-26 11:56:46 +0000 |
commit | 20318b56704aba35831050f331f122c6895c1935 (patch) | |
tree | b1716829be0ef2866def0ace05b16ca7ba30dfd9 /src/content | |
parent | 40a33adf52e0767cc6ecba350112c3ded53e9355 (diff) | |
parent | 73b4bc380d1ed5f7ef61d078ffd3e4a187c3c07e (diff) |
Merge pull request #96 from ueokande/QA
Testing for 0.3
Diffstat (limited to 'src/content')
-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 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); }; |