aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Crosby2014-04-25 10:00:24 -0700
committerPhil Crosby2014-04-25 10:05:28 -0700
commit3a3fe5bf67b085b2807b7afb2d23083541c4e1b0 (patch)
tree25da2ac477360c23902c2005f9f999b1f79e5859
parent5e38c97617594b548cacc57bfe41f2b770077dcd (diff)
downloadvimium-3a3fe5bf67b085b2807b7afb2d23083541c4e1b0.tar.bz2
Remove the link hint activation delay
Adding 400 ms delay to every click sucks. It's a good UX to see which link you clicked on, but I think the cost is too high. Give this a try and let me know if you think it's too jarring. This is in response to #799.
-rw-r--r--content_scripts/link_hints.coffee4
1 files changed, 1 insertions, 3 deletions
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee
index ca529b1f..8d102503 100644
--- a/content_scripts/link_hints.coffee
+++ b/content_scripts/link_hints.coffee
@@ -101,9 +101,7 @@ LinkHints =
url: link.href)
else # OPEN_IN_CURRENT_TAB
HUD.show("Open link in current tab")
- # When we're opening the link in the current tab, don't navigate to the selected link immediately
- # we want to give the user some time to notice which link has received focus.
- @linkActivator = (link) -> setTimeout(DomUtils.simulateClick.bind(DomUtils, link), 400)
+ @linkActivator = (link) -> DomUtils.simulateClick.bind(DomUtils, link)
#
# Creates a link marker for the given link.