aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/vimium_frontend.coffee
diff options
context:
space:
mode:
authorStephen Blott2014-11-11 18:54:23 +0000
committerStephen Blott2014-11-11 18:58:49 +0000
commit9ae1561caac47c8f4739492e66e3986f1977a3cb (patch)
treef872c8b10cc6676298736b68238a07777a8d206f /content_scripts/vimium_frontend.coffee
parent553a5c21aef68811d7e9289a68edea11613f93ea (diff)
downloadvimium-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.coffee8
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