Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix list view flicker #5164

Merged
merged 13 commits into from
Oct 24, 2024
Merged

Fix list view flicker #5164

merged 13 commits into from
Oct 24, 2024

Conversation

willmcgugan
Copy link
Collaborator

@willmcgugan willmcgugan commented Oct 23, 2024

Fixes #5163

  • Added immediate bool to scroll methods. If you are making changes to the DOM (without adding new nodes), this will allow the scroll and those changes to be done in a single frame -- and reducing flicker.

@darrenburns
Copy link
Member

@willmcgugan LGTM - I swapped out the implementation of find_next_enabled to use the new function you wrote and it's significantly faster (two orders of magnitude) for scrolling in an OptionList of 1k items.

@willmcgugan willmcgugan merged commit 667b3b3 into main Oct 24, 2024
4 of 19 checks passed
@willmcgugan willmcgugan deleted the list-view-fix branch October 24, 2024 14:02
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.

Implement long list of scrollable and selectable widgets
2 participants