diff options
| author | Stephen Blott | 2015-08-22 12:09:19 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-08-22 12:09:19 +0100 |
| commit | c08e59ea14c5b691a20a62d204456a8496258d0f (patch) | |
| tree | 23cfe43c50bd44dcc591715979648430a24d9e64 | |
| parent | 34e1abf2bf1e76ce0a283b3a9101628657c8a477 (diff) | |
| parent | 99c8eb517b89a7c1acc4d4f28dde1ce6f5c7713f (diff) | |
| download | vimium-c08e59ea14c5b691a20a62d204456a8496258d0f.tar.bz2 | |
Merge pull request #1794 from smblott-github/fix-perpetual-scroll
Prevent perpetual scroll.
| -rw-r--r-- | content_scripts/scroller.coffee | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content_scripts/scroller.coffee b/content_scripts/scroller.coffee index 81c71fcd..271a7854 100644 --- a/content_scripts/scroller.coffee +++ b/content_scripts/scroller.coffee @@ -136,6 +136,9 @@ CoreScroller = handlerStack.alwaysContinueBubbling => @keyIsDown = false @time += 1 + blur: => + handlerStack.alwaysContinueBubbling => + @time += 1 if event.target == window # Return true if CoreScroller would not initiate a new scroll right now. wouldNotInitiateScroll: -> @lastEvent?.repeat and Settings.get "smoothScroll" |
