I know this is aged as heck, but imagined I'd write-up anyhow due to the fact I just ran into exactly the same problem. Here's how I solved it.
Even though it isn't really usually practical for your monitor reader user to figure out the context of a specific ambiguous url, it's actually not that A great deal of a burden to figure out 1 or 2. The problems arrive when web pages are loaded with them.
What are The 2 distinct steps which you're seeking to take on click and double-click? IMO, in a standard software you might want both equally occasions: e.g. one-click to concentrate on a component and then double-click to activate it.
I delay the click handler by 300 ms (a visible and frustrating hold off) and Despite that you could continue to double click sluggish enough (eg. 350 ms) for making each of these fire.
What I want to perform seriously just isn't destined to be achievable. I must merely use two controls for the two steps, or make use of a modifier crucial rather than the double-click. Thanks!
EpanouiEpanoui 1,8961212 silver badges1313 bronze badges 3 3 Just in case the connection will be public—say, on the website like this a single, in contrast to within an e mail—you should chorus from applying "This connection" or "Click here" or "Link" as the hyperlink text. It can make it more challenging for those who use display screen viewers to detect the concentrate on.
Nevertheless, just Take into account that if you are doing have to use ambiguous hyperlink text, you won't "break" accessibility, just ensure it is a little much less hassle-free for a few. About the spectrum of "must haves" to "great to haves", This is often well within the latter 50 percent, Until ambiguous one-way links become the rule, rather than the exception.
The OP desired to disable the 1st click if there is really a 2nd click, if I realize appropriately. I believe the most effective bet is using a small hold off (I am employing 200ms, but was hoping there was a much better Answer that I just could not see).
one It Seems most purely natural in a proper location, like in a document. You should use it with a pal but in my view it sounds somewhat formal in that context. These are generally delicate variances. On the whole, It can be high-quality to implement it.
When generating this final decision, you really want to consider if the extra wording in the website link is too higher a cost to pay for the comfort to a screen reader person. Ordinarily, with slightly considered, you may come up with a website link text that is healthier for everybody.
Summarizing, to acknowledge the simpleClick and doubleClick events on precisely the same aspect, just treat the onClick occasion with this process:
Jordan S. JonesJordan S. Jones thirteen.9k55 gold badges4646 silver badges4949 bronze badges five Really, that's what I'm accomplishing now, however it looks like it is a somewhat kludgy solution.
Using the attribute android:onClick we click here declare the strategy title that has to be present to the parent action. So I've to create this method within our exercise like that:
Like a display screen reader consumer and an occasional World-wide-web designer (in addition to an online accessibility consultant), occasionally ambiguous hyperlinks are unavoidable.