aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/hud.coffee
diff options
context:
space:
mode:
authorMatthew Ryan2015-06-13 14:16:07 +0100
committerMatthew Ryan2015-06-13 14:16:07 +0100
commit107c8abd7ea1f2dc6d6a7e36b7cdeb93e1ca9335 (patch)
treeebc3ba8787099d253325d3ba049f2fc110d9f111 /content_scripts/hud.coffee
parent26a0653318be7bae4254e2e643dcb5ae5e2498e9 (diff)
parent8151d592b3ec2b37d4c41123cf94ed23d119d3c9 (diff)
downloadvimium-107c8abd7ea1f2dc6d6a7e36b7cdeb93e1ca9335.tar.bz2
Merge pull request #1 from smblott-github/hud-iframe-input
Hud iframe input
Diffstat (limited to 'content_scripts/hud.coffee')
-rw-r--r--content_scripts/hud.coffee6
1 files changed, 2 insertions, 4 deletions
diff --git a/content_scripts/hud.coffee b/content_scripts/hud.coffee
index cd34efe8..bfad71b7 100644
--- a/content_scripts/hud.coffee
+++ b/content_scripts/hud.coffee
@@ -33,9 +33,7 @@ HUD =
@tween.fade 1.0, 150
search: (data) ->
- window.scrollTo @findMode.scrollX, @findMode.scrollY if @findMode.options.returnToViewport
- FindMode.updateQuery data.query
- @findMode.findInPlace()
+ @findMode.findInPlace data.query
# Show the number of matches in the HUD UI.
matchCount = if FindMode.query.parsedQuery.length > 0 then FindMode.query.matchCount else 0
@@ -59,7 +57,7 @@ HUD =
@tween.fade 0, 150, => @hide true, updateIndicator
hideFindMode: (data) ->
- window.scrollTo @findMode.scrollX, @findMode.scrollY if @findMode.options.returnToViewport
+ @findMode.checkReturnToViewPort()
# An element element won't receive a focus event if the search landed on it while we were in the HUD
# iframe. To end up with the correct modes active, we create a focus/blur event manually after refocusing