Browse Source
Fix: Android TalkBack should still respond to all hover events (#21644)
pull/21651/head
Isabelle Santin
3 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
3 deletions
-
src/Android/Avalonia.Android/AvaloniaView.Input.cs
|
|
|
@ -28,8 +28,7 @@ namespace Avalonia.Android |
|
|
|
protected override bool DispatchHoverEvent(MotionEvent? e) |
|
|
|
{ |
|
|
|
var res = _view.PointerHelper.DispatchMotionEvent(e, out var callBase); |
|
|
|
if (res == false) |
|
|
|
callBase = (_accessHelper?.DispatchHoverEvent(e!) == true) && callBase; |
|
|
|
callBase = (_accessHelper?.DispatchHoverEvent(e!) == true) && callBase; |
|
|
|
|
|
|
|
var baseResult = callBase && base.DispatchHoverEvent(e); |
|
|
|
|
|
|
|
@ -50,7 +49,7 @@ namespace Avalonia.Android |
|
|
|
var result = _view.PointerHelper.DispatchMotionEvent(e, out var callBase); |
|
|
|
var baseResult = callBase && base.DispatchTouchEvent(e); |
|
|
|
|
|
|
|
if(result == true) |
|
|
|
if (result == true) |
|
|
|
{ |
|
|
|
// Request focus for this view
|
|
|
|
RequestFocus(); |
|
|
|
|