diff options
| author | Stephen Blott | 2014-12-16 15:34:36 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2014-12-16 15:34:36 +0000 | 
| commit | f0d8ad6740910bef0057b863974ccf8f851e3a24 (patch) | |
| tree | 126ac880a14a94d7116af5d32f4c877620d5b37a /content_scripts/vimium_frontend.coffee | |
| parent | 23ce72b0e845d2c4a1469f629cd1abd70dce6652 (diff) | |
| parent | 8a2f7bf9db05342bab2442f6b761f855fb0ca209 (diff) | |
| download | vimium-f0d8ad6740910bef0057b863974ccf8f851e3a24.tar.bz2 | |
Merge branch 'skip-tiny-frames' of https://github.com/mrmr1993/vimium into mrmr1993-skip-tiny-frames
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 16783bda..4ab6556f 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -225,6 +225,10 @@ setScrollPosition = (scrollX, scrollY) ->  # Called from the backend in order to change frame focus.  #  window.focusThisFrame = (shouldHighlight) -> +  if window.innerWidth < 3 or window.innerHeight < 3 +    # This frame is too small to focus. Cancel and tell the background frame to focus the next one instead. +    chrome.runtime.sendMessage({ handler: "nextFrame", frameId: frameId }) +    return    window.focus()    if (document.body && shouldHighlight)      borderWas = document.body.style.border | 
