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

Quickly animate scroll when calling ui.scroll_to_cursor etc #4119

Merged
merged 10 commits into from
Mar 4, 2024

Conversation

emilk
Copy link
Owner

@emilk emilk commented Mar 1, 2024

Uses ease-in-ease-out interpolation, with a time between 0.1s and 0.3s, depending on the distance needed to scroll.

smooth-scroll-to-target

@emilk emilk added the egui label Mar 1, 2024
@emilk emilk marked this pull request as ready for review March 1, 2024 22:58
@emilk emilk merged commit 18eeb01 into master Mar 4, 2024
35 checks passed
@emilk emilk deleted the emilk/smooth-scroll-to branch March 4, 2024 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant