[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:
Michael Goderbauer
2017-05-30 16:53:10 -07:00
committed by GitHub
parent 120a624660
commit e00a271112

View File

@@ -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 {