aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2017-11-18 12:17:09 +0000
committerStephen Blott2017-11-18 12:17:09 +0000
commit026c90ccff6f40cdc370c11339cdfab4a5e6b7b9 (patch)
treee0520fad088f9ef45d07c9e3eca2a522632de122
parentd6aa3547931fa3b27392cfb20ce49cee557d77dd (diff)
downloadvimium-026c90ccff6f40cdc370c11339cdfab4a5e6b7b9.tar.bz2
Make clear that element need not be provided here.
-rw-r--r--content_scripts/scroller.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/content_scripts/scroller.coffee b/content_scripts/scroller.coffee
index e2e05722..f65062e4 100644
--- a/content_scripts/scroller.coffee
+++ b/content_scripts/scroller.coffee
@@ -95,7 +95,7 @@ findScrollableElement = (element, direction, amount, factor) ->
# On some pages, the scrolling element is not actually scrollable. Here, we search the document for the
# largest visible element which does scroll vertically. This is used to initialize activatedElement. See
# #1358.
-firstScrollableElement = (element) ->
+firstScrollableElement = (element = null) ->
unless element
scrollingElement = getScrollingElement()
if doesScroll(scrollingElement, "y", 1, 1) or doesScroll(scrollingElement, "y", -1, 1)