diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-02-17 12:32:14 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-03-09 17:01:33 +0900 |
commit | 4a2b2e61342001910abd9ca7fd4932e2a9d7ed8a (patch) | |
tree | 643b5f90c6e6a79d907c2b7e50f35495448eb437 /src/content/scrolls.js | |
parent | 124e221999e914d63326a91602517d1e5e1bea73 (diff) |
Fix scroller target
Diffstat (limited to 'src/content/scrolls.js')
-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 a307aa7..1fa88d1 100644 --- a/src/content/scrolls.js +++ b/src/content/scrolls.js @@ -63,7 +63,7 @@ class Scroller { scrollTo(x, y) { let behavior = this.smooth ? 'smooth' : 'auto'; - window.scrollTo({ + this.element.scrollTo({ left: x, top: y, behavior: behavior, @@ -76,7 +76,7 @@ class Scroller { scrollBy(x, y) { let behavior = this.smooth ? 'smooth' : 'auto'; - window.scrollBy({ + this.element.scrollBy({ left: x, top: y, behavior: behavior, |