From 4a2b2e61342001910abd9ca7fd4932e2a9d7ed8a Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 17 Feb 2019 12:32:14 +0900 Subject: [PATCH] Fix scroller target --- src/content/scrolls.js | 4 ++-- 1 file 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,