clean operation definitions

This commit is contained in:
Shin'ya Ueoka 2017-09-25 21:22:28 +09:00
parent c2a5a41cb6
commit 4edb0331a1
4 changed files with 44 additions and 37 deletions

View file

@ -85,9 +85,9 @@ const execOperation = (operation) => {
return scrolls.scrollTop(window);
case operations.SCROLL_BOTTOM:
return scrolls.scrollBottom(window);
case operations.SCROLL_LEFT:
case operations.SCROLL_HOME:
return scrolls.scrollLeft(window);
case operations.SCROLL_RIGHT:
case operations.SCROLL_END:
return scrolls.scrollRight(window);
case operations.FOLLOW_START:
return startFollows(operation.newTab);