Magnifier: tell the user when tracking has been unavailable for a while

Open
#21,111 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
accessibility

Research direction

Read the expected behavior in #20860 and the focus manager changes described in #20992, then trace how Magnifier updates identify the source currently being followed and report failed sources. Use elapsed time to detect a continuous failure, announce once, and reset when tracking resumes. Done means only the followed source triggers one announcement after about a second, with no repeats until recovery.

Written by the indexing model from the issue text.

Description

feature/magnifier p5 triaged
Is your feature request related to a problem? Please describe.

When the Magnifier cannot determine where the focus, caret, review cursor or navigator object is
(for example because an application stops responding to accessibility queries), the magnified view
stays where it was. With #20992 this no longer flickers or stops the Magnifier, which is a big
improvement, but nothing tells the user. A low-vision user cannot easily distinguish "tracking is
broken" from "nothing has moved".

This was point 1 of the expected behaviour in #20860:

If the duration where tracking does not work is expected to be long, e.g. more than 1 second
[…] it should be reported (e.g. with ui.message) that there is a tracking issue with the
magnifier.

As suggested on #20992, this splits that point into its own issue.

Describe the solution you'd like

When tracking has failed continuously for more than about one second, announce once, e.g.
"Magnifier tracking unavailable". Say nothing more until tracking works again, then reset.

  • Measure the delay in elapsed time rather than in update cycles. The update timer is rescheduled
    only after each update completes, and the conditions that break tracking (an unresponsive
    application, an RPC timeout) also make individual updates slow, so a cycle count maps to an
    unpredictable delay.
  • Announce at most once per failure period, so a persistent failure cannot flood speech.
  • Announce only when the source the Magnifier is currently following is unavailable. A failing
    source the user isn't following (e.g. the review cursor while following the focus) should stay
    silent.
Describe alternatives you've considered
  • Logging only, which helps developers but not users.
  • A sound instead of a message.
  • Doing nothing: the view simply stays put.
Additional context

This would add one translatable string. I have an implementation ready on top of #20992, which
I'll open as a PR once #20992 has merged and we agree on the behaviour here. With #20992, a
failing source falls back to its last known position inside the focus manager, so the focus
manager now reports which sources had to fall back during each update.

Dominant language
Python
Stars
2.7k
Forks
842
Avg merge
2d 4h
Merged PRs (30d)
56

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nvaccess/nvda

All issues in nvaccess/nvda

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.