diff options
Diffstat (limited to 'src/content/index.js')
-rw-r--r-- | src/content/index.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/content/index.js b/src/content/index.js index 6bf5d57..9dd3706 100644 --- a/src/content/index.js +++ b/src/content/index.js @@ -49,10 +49,16 @@ const invokeEvent = (action) => { scrolls.scrollPages(window, action[1]); break; case actions.SCROLL_TOP: - scrolls.scrollTop(window, action[1]); + scrolls.scrollTop(window); break; case actions.SCROLL_BOTTOM: - scrolls.scrollBottom(window, action[1]); + scrolls.scrollBottom(window); + break; + case actions.SCROLL_LEFT: + scrolls.scrollLeft(window); + break; + case actions.SCROLL_RIGHT: + scrolls.scrollRight(window); break; case actions.FOLLOW_START: new Follow(window.document, action[1] || false); |