diff options
| author | Stephen Blott | 2016-09-14 08:02:22 +0100 |
|---|---|---|
| committer | Stephen Blott | 2016-09-14 08:02:22 +0100 |
| commit | 722cd3c40f89d93682f08e88b6d4cb46ca70991e (patch) | |
| tree | 07ffd924c9ccb12bcc13149cab757729b17fedc3 /content_scripts/vimium_frontend.coffee | |
| parent | fd20405ddf27365cfaf69e16289b2fc6d39c2a5e (diff) | |
| download | vimium-722cd3c40f89d93682f08e88b6d4cb46ca70991e.tar.bz2 | |
Require exact match when we will be scrolling.
If the user is jumping to a scroll position within a tab, then we need
an exact match on the URL (because otherwise the scroll position doesn't
really have a meaning). Otherwise we only require a prefix match, a la #2250.
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index f11c8f4b..aea1b6ac 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -257,8 +257,8 @@ Frame = window.removeEventListener "hashchange", onFocus setScrollPosition = ({ scrollX, scrollY }) -> - if DomUtils.isTopFrame() - DomUtils.documentReady -> + DomUtils.documentReady -> + if DomUtils.isTopFrame() window.focus() document.body.focus() if 0 < scrollX or 0 < scrollY |
