diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-25 21:57:02 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-25 22:00:08 +0900 |
commit | d1f456dca0cfb70383005b955745ac1f90065cf5 (patch) | |
tree | 94ca8e745f40d9932274780171477863376e3707 /src/content | |
parent | 0bd04565924a29d469ae43d533eb9e2204648bc9 (diff) |
fix page scroll
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); }; |