Skip to content

Fix: correct usage of PointToScreen for Android TalkBack#21402

Merged
MrJul merged 1 commit into
AvaloniaUI:masterfrom
IsaMorphic:feature/fix-android-talkback
May 20, 2026
Merged

Fix: correct usage of PointToScreen for Android TalkBack#21402
MrJul merged 1 commit into
AvaloniaUI:masterfrom
IsaMorphic:feature/fix-android-talkback

Conversation

@IsaMorphic

Copy link
Copy Markdown
Contributor

What does the pull request do?

This PR patches the Android TalkBack plugin for Avalonia (previously implemented in #17704) to update its usage of the Visual.PointToScreen extension method such that correct screen coordinates are reported to the TalkBack API.

What is the current behavior?

The current behavior is broken due to updates provided in #20624 which switch the preferred method for gathering screen-space coordinates from TopLevel.PointToScreen to IInputRoot.RootElement.PointToScreen. Now, Android TalkBack uses the correct internal API per this change.

What is the updated/expected behavior with this PR?

Before this PR, Avalonia 12 on Android devices would show strangely offset outlines while using Android TalkBack. Now, the correct bounds are reported to the OS and the outlines show as expected.

Checklist

@avaloniaui-bot

Copy link
Copy Markdown

You can test this PR using the following package version. 12.1.999-cibuild0065633-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@MrJul MrJul added os-android area-accessibility backport-candidate-12.0.x Consider this PR for backporting to 12.0 branch labels May 20, 2026

@MrJul MrJul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@MrJul MrJul added the bug label May 20, 2026
@MrJul MrJul enabled auto-merge May 20, 2026 21:09
@MrJul MrJul added this pull request to the merge queue May 20, 2026
Merged via the queue into AvaloniaUI:master with commit a678adf May 20, 2026
12 checks passed
@IsaMorphic IsaMorphic deleted the feature/fix-android-talkback branch May 21, 2026 18:00
MrJul pushed a commit to MrJul/Avalonia that referenced this pull request May 28, 2026
@MrJul MrJul added backported-12.0.x and removed backport-candidate-12.0.x Consider this PR for backporting to 12.0 branch labels May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants