[iOS accessibility] Dispatch taps to selected element (flutter/engine#3718)
Previously, taps were sent to the topmost tap handler in the center of the accessibility frame of the selected element nd therefore might have been handled by a different element than the desired one.
This commit is contained in:
committed by
GitHub
parent
120a624660
commit
e00a271112
@@ -173,8 +173,10 @@ blink::SemanticsAction GetSemanticsActionForScrollDirection(
|
||||
#pragma mark - UIAccessibilityAction overrides
|
||||
|
||||
- (BOOL)accessibilityActivate {
|
||||
// TODO(tvolkert): Implement
|
||||
return NO;
|
||||
if (!_node.HasAction(blink::SemanticsAction::kTap))
|
||||
return NO;
|
||||
_bridge->DispatchSemanticsAction(_uid, blink::SemanticsAction::kTap);
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (void)accessibilityIncrement {
|
||||
|
||||
Reference in New Issue
Block a user