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

Reworked decorations debounce delay with special exception for scrolling #377

Merged
merged 4 commits into from
Dec 16, 2021

Conversation

AndreasArvidsson
Copy link
Member

Removed single setting for debounce delay and replaced with two different default values.
60Hz for all decorations except visible ranges at 25Hz to improve performance and remove annoyance when scrolling.

@AndreasArvidsson AndreasArvidsson added this to the 0.24.0 milestone Dec 11, 2021
Copy link
Member

@pokey pokey left a comment

Choose a reason for hiding this comment

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

Looks good but I'd like to have a quick play with it before we merge

src/core/HatAllocator.ts Show resolved Hide resolved
src/core/HatAllocator.ts Show resolved Hide resolved
src/core/HatAllocator.ts Show resolved Hide resolved
@pokey
Copy link
Member

pokey commented Dec 14, 2021

Ok just wired it up. Def nice to get that 16ms thing, but I think 40ms is a bit fast for scroll, as there are a bunch of refreshes as my momentum scrolling slows at the end. Maybe we could bump it up a little bit, or make it a setting?

@AndreasArvidsson AndreasArvidsson merged commit e17c60f into main Dec 16, 2021
@AndreasArvidsson AndreasArvidsson deleted the decoration_delay branch December 16, 2021 10:52
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.

2 participants