Skip to content

WinUI: Mouse tracking fails in applications using Windows App SDK 1.6. #17407

Open

Description

@hwf1324

Steps to reproduce:

In a WinUI application using the Windows App SDK 1.6.
Perform mouse tracking.

Actual behavior:

Does not report what is under the mouse.

Expected behavior:

Report what's under the mouse

NVDA logs, crash dumps and other attachments:

System configuration

NVDA installed/portable/running from source:

install

NVDA version:

alpha-34581,32245d46 x86

Windows version:

Windows 11 22H2 (10.0.22621) workstation AMD64

Name and version of other software in use when reproducing the issue:

WinUI application using Windows App SDK 1.6.
For example, PowerToys v0.86.0
Or create a blank WinUI app in VS 2022

Other information about your system:

Other questions

Does the issue still occur after restarting your computer?

Yes

Have you tried any other versions of NVDA? If so, please report their behaviors.

If NVDA add-ons are disabled, is your problem still occurring?

Yes

Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?

Yes

Activity

  1. hwf1324 commented on Nov 16, 2024

    @hwf1324
    ContributorAuthor

    Hi, CC: @josephsl , @michaelDCurran , Maybe you guys will have some thoughts on this issue.

    It's strange that NVDA considers the external window and pane objects of these apps to be IAccessible, while internally they are normal UIA objects, perhaps this is the cause of the problem?

    But I don't know what it's because of, and both the narrator and Accessibility Insights For Windows are able to get the internal controls with the mouse.

  2. seanbudd commented on Nov 19, 2024

    @seanbudd
    Member

    Has this been reported to microsoft? Have you tested this with the latest release 1.6.3?

    It seems like this SDK is new and under active development. Bugs should be reported to the authors primarily.

  3. hwf1324 commented on Nov 19, 2024

    @hwf1324
    ContributorAuthor

    The issue has been reported to the Windows App SDK team, but there has been no response yet.

    There are already official versions of some apps that have encountered this problem, such as PowerToys v0.86.0, UniGetUI, and others.

  4. josephsl commented on Nov 19, 2024

    @josephsl
    Contributor
  5. hwf1324 commented on Dec 8, 2024

    @hwf1324
    ContributorAuthor

    Hi, also do let Microsoft know that at least PowerToys 0.86 does not expose control labels at all to screen reading technologies. Thanks.

    Hi,

    This seems to only appear in the dashboard controls.
    I created microsoft/PowerToys#36252.

    Thanks!

  6. hwf1324 commented on Dec 16, 2024

    @hwf1324
    ContributorAuthor

    It's strange that NVDA considers the external window and pane objects of these apps to be IAccessible, while internally they are normal UIA objects, perhaps this is the cause of the problem?

    But I don't know what it's because of, and both the narrator and Accessibility Insights For Windows are able to get the internal controls with the mouse.

    CC: @codeofdusk Can you provide some suggestions?

    I'm not sure if this is due to NVDA thinking that the NVDAObjects in the outer pane are IAccessible objects, thus interrupting NVDA from getting the correct UIA objects?

    I'd like to try to get NVDA to think that these IAccessible objects are UIA objects and see if that solves the problem. But I'm not sure how to do that.

  7. codeofdusk commented on Dec 16, 2024

    @codeofdusk
    Contributor

    I'm the primary maintainer of Accessibility Insights for Windows. That app uses the UIA bridge found in Windows 1903 and later. NVDA opts out of this bridge, only using UIA where a native provider is available.

  8. josephsl commented on Dec 16, 2024

    @josephsl
    Contributor
  9. codeofdusk commented on Dec 16, 2024

    @codeofdusk
    Contributor

    @josephsl I'm assuming you're looking for a toggle (in advanced settings) to allow use of the bridge to ease testing?

  10. codeofdusk commented on Dec 16, 2024

    @codeofdusk
    Contributor

    You can do this now with nav.appModule.isGoodUIAWindow = lambda hwnd: True in the Python console

  11. hwf1324 commented on Dec 16, 2024

    @hwf1324
    ContributorAuthor

    You can do this now with nav.appModule.isGoodUIAWindow = lambda hwnd: True in the Python console

    This is great! That does get mouse tracking back to work.

  12. josephsl commented on Dec 16, 2024

    @josephsl
    Contributor
  13. hwf1324 commented on Dec 16, 2024

    @hwf1324
    ContributorAuthor

    You can do this now with nav.appModule.isGoodUIAWindow = lambda hwnd: True in the Python console

    This also seems to work for fixing mouse tracking in Notepad or Windows Terminal.

  14. josephsl commented on Mar 12, 2025

    @josephsl
    Contributor

    Hi,

    More details provided in #17771, but it won't hurt to fix both of these in an upcoming PR.

    Thanks.

  15. added this to the 2025.2 milestone on Apr 6, 2025
  16. modified the milestones: 2025.2, 2025.1 on Apr 6, 2025
  17. added a commit that references this issue on Apr 10, 2025
    8d5c38c
  18. Adriani90 commented on Jun 6, 2025

    @Adriani90
    Collaborator

    What needs to be done on this issue still? I see that github say this will be closed when commit 235d1f7 is merged into master, but I think this happened already a while ago.
    cc: @josephsl

  19. Adriani90 commented on Nov 28, 2025

    @Adriani90
    Collaborator

    @msftedad can you please forward this to the development team? It is a quite broad issue which would make lots of applications more accessible once it is fixed by Microsoft, especially on the UI-XAML side.
    See microsoft/microsoft-ui-xaml#10192

  20. Emil-18 commented on Nov 29, 2025

    @Emil-18
    Contributor

    @josephsl, @codeofdusk By UIA bridge, you are refering to UIA's ability to use MSAA and window messages to fetch data when the window doesn't support UIA natively? If so, I don't think it should be used, at least not as a replacement for MSAA. Most events doesn't work with it, or at least, when I force NVDA to use UIA in places where it isn't natively supported, it is unable to fetch events like nameChange, stateChange, etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions