Skip to content

eventHandler: Drop hide events.#11072

Merged
feerrenrut merged 1 commit into
nvaccess:masterfrom
jcsteh:noHide
Apr 30, 2020
Merged

eventHandler: Drop hide events.#11072
feerrenrut merged 1 commit into
nvaccess:masterfrom
jcsteh:noHide

Conversation

@jcsteh
Copy link
Copy Markdown
Contributor

@jcsteh jcsteh commented Apr 30, 2020

Link to issue number:

None.

Summary of the issue:

On twitter.com in Firefox, moving to tweets you haven't read yet by pressing j is pretty sluggish, taking upwards of 300 ms.

Description of how this pull request fixes the issue:

Twitter fires quite a few hide events in this case. Aside from IAccessible caret support (which is handled within IAccessibleHandler), NVDA doesn't use hide events anywhere. Processing them is not only pointless, but it also degrades performance. So, drop them.

Testing performed:

Refreshed Twitter, switched to focus mode and moved through tweets by pressing j. The timing is pretty variable, but before this PR, time since input shows > 300 ms most of the time. After this PR, time since input shows ~120 ms most of the time.

Known issues with pull request:

None.

Change log entry:

Probably not worth mentioning, since this is hardly blazing fast even with this PR.

Aside from IAccessible caret support (which is handled within IAccessibleHandler), NVDA doesn't use hide events anywhere.
Some web apps, such as Twitter, fire quite a few of these.
Processing them is not only pointless, but it also degrades performance.
@feerrenrut
Copy link
Copy Markdown
Contributor

Can I ask how you determined that hide events aren't used? Could be helpful advice for other nvda-devs.

@feerrenrut feerrenrut merged commit f436d4d into nvaccess:master Apr 30, 2020
@nvaccessAuto nvaccessAuto added this to the 2020.1 milestone Apr 30, 2020
@jcsteh
Copy link
Copy Markdown
Contributor Author

jcsteh commented May 1, 2020 via email

@jcsteh jcsteh deleted the noHide branch May 1, 2020 01:31
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