diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-02-11 20:11:13 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-11 20:11:13 +0900 |
commit | 21788740c1d4ee28ce05d6bd09d37901d1d88b68 (patch) | |
tree | 862f9d057b029a2cd0703f2b6087a2c1c0fb10b5 /src/content/actions/operation.js | |
parent | b5a85ad059c45f6cdde432d656888710595d68a5 (diff) | |
parent | 68668cfefa3d2e90564c381f9f55167df75e4a75 (diff) |
Merge pull request #536 from ueokande/make-smooth-scroll-smoother
Make smooth-scroll smoother
Diffstat (limited to 'src/content/actions/operation.js')
-rw-r--r-- | src/content/actions/operation.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/content/actions/operation.js b/src/content/actions/operation.js index b96c6b9..e83387d 100644 --- a/src/content/actions/operation.js +++ b/src/content/actions/operation.js @@ -10,7 +10,7 @@ import * as markActions from './mark'; import * as properties from 'shared/settings/properties'; // eslint-disable-next-line complexity, max-lines-per-function -const exec = (operation, repeat, settings, addonEnabled) => { +const exec = (operation, settings, addonEnabled) => { let smoothscroll = settings.properties.smoothscroll || properties.defaults.smoothscroll; switch (operation.type) { @@ -31,13 +31,13 @@ const exec = (operation, repeat, settings, addonEnabled) => { }), '*'); break; case operations.SCROLL_VERTICALLY: - scrolls.scrollVertically(operation.count, smoothscroll, repeat); + scrolls.scrollVertically(operation.count, smoothscroll); break; case operations.SCROLL_HORIZONALLY: - scrolls.scrollHorizonally(operation.count, smoothscroll, repeat); + scrolls.scrollHorizonally(operation.count, smoothscroll); break; case operations.SCROLL_PAGES: - scrolls.scrollPages(operation.count, smoothscroll, repeat); + scrolls.scrollPages(operation.count, smoothscroll); break; case operations.SCROLL_TOP: scrolls.scrollToTop(smoothscroll); |