Skip to content

unlock mouse from center when panning magnifier#19782

Merged
seanbudd merged 3 commits intonvaccess:masterfrom
France-Travail:fix/keepMouseCentered
Apr 1, 2026
Merged

unlock mouse from center when panning magnifier#19782
seanbudd merged 3 commits intonvaccess:masterfrom
France-Travail:fix/keepMouseCentered

Conversation

@Boumtchack
Copy link
Copy Markdown
Contributor

Link to issue number:

fix #19708

Summary of the issue:

Mouse was kept in the center of the screen even if the settings was set on false

Description of user facing changes:

Keep mouse centered works properly with panning

Description of developer facing changes:

adding 2 function to better manage panning and mouse center

Description of development approach:

used better condition to update magnifier.

Testing strategy:

Manual

Known issues with pull request:

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

@seanbudd
Copy link
Copy Markdown
Member

@Boumtchack - it is becoming quite hard for us to manage so many concurrent magnifier PRs. Could you please avoid opening new ones until the current ones are complete?

@seanbudd seanbudd changed the title unlock mouse from center when panning unlock mouse from center when panning magnifier Mar 17, 2026
@seanbudd seanbudd added the conceptApproved Similar 'triaged' for issues, PR accepted in theory, implementation needs review. label Mar 17, 2026
@seanbudd
Copy link
Copy Markdown
Member

is this ready for review?

@Boumtchack Boumtchack marked this pull request as ready for review March 30, 2026 15:41
@Boumtchack Boumtchack requested a review from a team as a code owner March 30, 2026 15:41
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes NVDA magnifier panning so that the mouse cursor is not forcibly kept centered when the “Keep mouse pointer centered in magnifier view” setting is disabled (issue #19708).

Changes:

  • Adds manual-panning state management so panning can persist without immediately snapping back to focus tracking.
  • Makes mouse-centering behavior conditional (attempting to respect the “keep mouse centered” setting) and refactors this into helper methods.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread source/_magnifier/magnifier.py Outdated
Comment thread source/_magnifier/magnifier.py Outdated
Comment thread source/_magnifier/magnifier.py Outdated
Comment thread source/_magnifier/magnifier.py Outdated
@seanbudd seanbudd requested review from seanbudd and removed request for SaschaCowley March 31, 2026 02:05
@seanbudd seanbudd self-assigned this Mar 31, 2026
@seanbudd seanbudd marked this pull request as draft March 31, 2026 02:06
@seanbudd
Copy link
Copy Markdown
Member

converting to draft for copilot's comments

@Boumtchack Boumtchack marked this pull request as ready for review March 31, 2026 12:19
Copy link
Copy Markdown
Member

@seanbudd seanbudd left a comment

Choose a reason for hiding this comment

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

Thanks @Boumtchack

@seanbudd seanbudd merged commit a011967 into nvaccess:master Apr 1, 2026
37 of 41 checks passed
@github-actions github-actions bot added this to the 2026.2 milestone Apr 1, 2026
seanbudd pushed a commit that referenced this pull request Apr 2, 2026
fix a bug introduced with #19782
Summary of the issue:

Mouse would drift up if shouldKeepMouseCentered=True
Description of user facing changes:

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

Labels

conceptApproved Similar 'triaged' for issues, PR accepted in theory, implementation needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Magnifier - The mouse cursor remains centered, no matter the value of "Keep mouse pointer centered in magnifier view"

3 participants