Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Change to throttle sidebar UI on public page #1228

Merged
merged 1 commit into from Dec 28, 2019
Merged

Conversation

christianbundy
Copy link
Contributor

When connections change quickly the sidebar can flash and strobe, which
is annoying at best and inaccessible at worst. This commit throttles the
UI changes at a maximum of 1 change per second, which reduces the
unwanted behavior.

Note: The throttle() method from Mutant doesn't have tests or
documentation, so this is my best guess at how it's meant to be used
from reading the source code.

Resolves #1215

See also: %wkbFpz2U4Gv/8eJxszE7ke6cnb8GMVkYjLceOn0kbe8=.sha256

When connections change quickly the sidebar can flash and strobe, which
is annoying at best and inaccessible at worst. This commit throttles the
UI changes at a maximum of 1 change per second, which reduces the
unwanted behavior.

Note: The `throttle()` method from Mutant doesn't have tests or
documentation, so this is my best guess at how it's meant to be used
from reading the source code.
@staltz
Copy link
Member

staltz commented Dec 28, 2019

The code looks good. Does this work as intended? If so, good to merge in my opinion.

@christianbundy
Copy link
Contributor Author

Yeah, although Bob mentioned in the linked thread that there's still an issue where Lynn movies from "Local" to "Connected" repeatedly, which probably isn't what we want?

@christianbundy christianbundy merged commit bc49bc6 into master Dec 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Possible connections" glitches
2 participants