diff options
| author | Stephen Blott | 2014-11-11 18:54:23 +0000 |
|---|---|---|
| committer | Stephen Blott | 2014-11-11 18:58:49 +0000 |
| commit | 9ae1561caac47c8f4739492e66e3986f1977a3cb (patch) | |
| tree | f872c8b10cc6676298736b68238a07777a8d206f /content_scripts/vimium_frontend.coffee | |
| parent | 553a5c21aef68811d7e9289a68edea11613f93ea (diff) | |
| download | vimium-9ae1561caac47c8f4739492e66e3986f1977a3cb.tar.bz2 | |
Smooth scroll; comments and more minor tidy up.
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 57503565..9c59396f 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -227,10 +227,10 @@ window.focusThisFrame = (shouldHighlight) -> setTimeout((-> document.body.style.border = borderWas), 200) extend window, - scrollToBottom: -> Scroller.scrollTo "y", "max", true - scrollToTop: -> Scroller.scrollTo "y", 0, true - scrollToLeft: -> Scroller.scrollTo "x", 0, true - scrollToRight: -> Scroller.scrollTo "x", "max", true + scrollToBottom: -> Scroller.scrollTo "y", "max" + scrollToTop: -> Scroller.scrollTo "y", 0 + scrollToLeft: -> Scroller.scrollTo "x", 0 + scrollToRight: -> Scroller.scrollTo "x", "max" scrollUp: -> Scroller.scrollBy "y", -1 * settings.get("scrollStepSize") scrollDown: -> Scroller.scrollBy "y", settings.get("scrollStepSize") scrollPageUp: -> Scroller.scrollBy "y", "viewSize", -1/2 |
