aboutsummaryrefslogtreecommitdiff
path: root/src/content/actions
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-09 21:24:01 +0900
committerGitHub <noreply@github.com>2017-10-09 21:24:01 +0900
commitb580ef8170a31f7cbef3103d1017f89a6f105319 (patch)
treeaaba38ee6a4a7443a5b60b189444f4e02d4c248f /src/content/actions
parent447466808f484d4baa6b285f2dbcaf1920db5498 (diff)
parentcf36bf192ccbc6ffd175e4dd397b4a9140b7f28b (diff)
Merge pull request #28 from ueokande/horizonal-scroll
Horizonal scroll
Diffstat (limited to 'src/content/actions')
-rw-r--r--src/content/actions/operation.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/content/actions/operation.js b/src/content/actions/operation.js
index 0d5088b..9187514 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:
@@ -17,9 +19,9 @@ const exec = (operation) => {
case operations.SCROLL_BOTTOM:
return scrolls.scrollBottom(window);
case operations.SCROLL_HOME:
- return scrolls.scrollLeft(window);
+ return scrolls.scrollHome(window);
case operations.SCROLL_END:
- return scrolls.scrollRight(window);
+ return scrolls.scrollEnd(window);
case operations.FOLLOW_START:
return followActions.enable(false);
case operations.NAVIGATE_HISTORY_PREV: