diff options
| -rw-r--r-- | content_scripts/scroller.coffee | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/content_scripts/scroller.coffee b/content_scripts/scroller.coffee index 7b46bab0..6965f706 100644 --- a/content_scripts/scroller.coffee +++ b/content_scripts/scroller.coffee @@ -259,8 +259,10 @@ Scroller =      amount = getDimension(element,direction,pos) - element[scrollProperties[direction].axisName]      CoreScroller.scroll element, direction, amount +  # Is element scrollable and not the activated element?    isScrollableElement: (element) -> -    isScrollableElement element +    activatedElement ||= (document.body and firstScrollableElement()) or document.body +    element != activatedElement and isScrollableElement element    # Scroll the top, bottom, left and right of element into view.  The is used by visual mode to ensure the    # focus remains visible. | 
