aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/hud.coffee
diff options
context:
space:
mode:
authormrmr19932015-06-02 16:39:01 +0100
committermrmr19932015-06-10 17:21:23 +0100
commit870ca562bfe904971b6055a67259b5c21b1655ee (patch)
treec9ff32b4446cbecd067617296694bfb2dc1df57b /content_scripts/hud.coffee
parentf17747e7d3f62dc966c8ff36c0937b69c35ef47e (diff)
downloadvimium-870ca562bfe904971b6055a67259b5c21b1655ee.tar.bz2
Fix returnToViewport support for FindMode
This was broken by the move to taking input in an iframe, since the frontend was no longer getting keydown events for text changes, and so the viewport wasn't being scrolled back to its original position until the mode was exiting.
Diffstat (limited to 'content_scripts/hud.coffee')
-rw-r--r--content_scripts/hud.coffee1
1 files changed, 1 insertions, 0 deletions
diff --git a/content_scripts/hud.coffee b/content_scripts/hud.coffee
index 2b3748bf..f16fcca6 100644
--- a/content_scripts/hud.coffee
+++ b/content_scripts/hud.coffee
@@ -35,6 +35,7 @@ HUD =
@hudUI.postMessage {name: "updateMatchesCount", matchCount, showMatchText}
search: (data) ->
+ window.scrollTo findMode.scrollX, findMode.scrollY if findMode.options.returnToViewport
findModeQuery.rawQuery = data.query
updateFindModeQuery()
performFindInPlace()