aboutsummaryrefslogtreecommitdiff
path: root/src/content/index.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-08-27 10:12:12 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-08-27 10:12:12 +0900
commit02c0cfd97d44c8568dee6f0d11d2e45732309c67 (patch)
tree3ac86ccfaabaa86acd23a0f46821c6511223db0a /src/content/index.js
parent6213f55e22f79eb8b7572a619e0fc68047c0631e (diff)
scroll lines action
Diffstat (limited to 'src/content/index.js')
-rw-r--r--src/content/index.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/content/index.js b/src/content/index.js
index 2bbe39c..b233e27 100644
--- a/src/content/index.js
+++ b/src/content/index.js
@@ -42,11 +42,8 @@ const invokeEvent = (action) => {
createFooterLine('open ');
}
break;
- case actions.SCROLL_UP:
- scrolls.scrollUp(window, action[1] || 1);
- break;
- case actions.SCROLL_DOWN:
- scrolls.scrollDown(window, action[1] || 1);
+ case actions.SCROLL_LINES:
+ scrolls.scrollLines(window, action[1]);
break;
case actions.SCROLL_TOP:
scrolls.scrollTop(window, action[1]);