Skip to content

Fast vertical QuickNav in Gecko-based textInfos#16385

Merged
seanbudd merged 2 commits into
nvaccess:masterfrom
mltony:verticalFast
Apr 15, 2024
Merged

Fast vertical QuickNav in Gecko-based textInfos#16385
seanbudd merged 2 commits into
nvaccess:masterfrom
mltony:verticalFast

Conversation

@mltony

@mltony mltony commented Apr 12, 2024

Copy link
Copy Markdown
Contributor

Link to issue number:

Closes #16382.

Summary of the issue:

Vertical navigation is too slow.

Description of user facing changes

N/A

Description of development approach

Retrieving x coordinate faster in Gecko textInfo by doing a direct IAccessible2 call - as opposed to creating an NVDAObject. According to my rough measurement, this speeds up vertical navigation about 10 times.

Testing strategy:

Tested on usecase provided in the issue above.

Known issues with pull request:

N/A

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.

@mltony mltony marked this pull request as ready for review April 12, 2024 00:46
@mltony mltony requested a review from a team as a code owner April 12, 2024 00:46
@mltony mltony requested a review from SaschaCowley April 12, 2024 00:46
@XLTechie

XLTechie commented Apr 12, 2024 via email

Copy link
Copy Markdown
Collaborator

@mltony

mltony commented Apr 12, 2024

Copy link
Copy Markdown
Contributor Author

I don't have any timeout logic in vertical navigation. What I mean by timeout is that some other part of NVDA - I suspect watchdog - prevents scripts from running for too long and interrupts them after 10 seconds. I am not familiar with that logic so don't know whether it's configurable.

@Adriani90

Copy link
Copy Markdown
Collaborator

How is this suposed to work in Chromium browsers when you use UiA? If this is not gonna work there, we should note that in the user guide or throw a message when people try to navigate vertically while using UIA.
I assume this PR will not have any effect on using vertical nav in MS Word or Outlook. Right? Anyway, I didn't notice performance issues in MS Office, it was only in browsers so far.

@mltony

mltony commented Apr 12, 2024

Copy link
Copy Markdown
Contributor Author

It still works in edge+UIA - I just tested. Just not as fast.

Comment thread source/virtualBuffers/gecko_ia2.py

@seanbudd seanbudd 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.

Thanks @mltony

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vertical navigation: offset too big for buffer causes NVDA to freeze for a while at least for 8 seconds for every key press

5 participants