mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 768863 - Provide full context for explore by touch events like we do for focus. r=MarcoZ
This commit is contained in:
parent
436113599f
commit
ff54227eb2
@ -260,24 +260,11 @@ AndroidPresenter.prototype = {
|
||||
|
||||
let output = [];
|
||||
|
||||
if (isExploreByTouch) {
|
||||
// Just provide the parent for some context, no need to utter the entire
|
||||
// ancestry change since it doesn't make sense in spatial navigation.
|
||||
for (var i = aContext.newAncestry.length - 1; i >= 0; i--) {
|
||||
let utter = UtteranceGenerator.genForObject(aContext.newAncestry[i]);
|
||||
if (utter.length) {
|
||||
output.push.apply(output, utter);
|
||||
break;
|
||||
}
|
||||
aContext.newAncestry.forEach(
|
||||
function(acc) {
|
||||
output.push.apply(output, UtteranceGenerator.genForObject(acc));
|
||||
}
|
||||
} else {
|
||||
// Utter the entire context change in linear navigation.
|
||||
aContext.newAncestry.forEach(
|
||||
function(acc) {
|
||||
output.push.apply(output, UtteranceGenerator.genForObject(acc));
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
output.push.apply(output,
|
||||
UtteranceGenerator.genForObject(aContext.accessible));
|
||||
|
Loading…
Reference in New Issue
Block a user