From 8c84930ca3ca673ca2b6afa8973b2de5f0dc9cb3 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka <ueokande@i-beam.org> Date: Mon, 9 Oct 2017 21:00:26 +0900 Subject: scroll horizonally --- src/content/actions/operation.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/content/actions') diff --git a/src/content/actions/operation.js b/src/content/actions/operation.js index 0d5088b..1302404 100644 --- a/src/content/actions/operation.js +++ b/src/content/actions/operation.js @@ -8,8 +8,10 @@ import * as consoleFrames from 'content/console-frames'; const exec = (operation) => { switch (operation.type) { - case operations.SCROLL_LINES: - return scrolls.scrollLines(window, operation.count); + case operations.SCROLL_VERTICALLY: + return scrolls.scrollVertically(window, operation.count); + case operations.SCROLL_HORIZONALLY: + return scrolls.scrollHorizonally(window, operation.count); case operations.SCROLL_PAGES: return scrolls.scrollPages(window, operation.count); case operations.SCROLL_TOP: -- cgit v1.2.3