Skip to content

Quickly animate scroll when calling ui.scroll_to_cursor etc #4119

Merged
emilk merged 10 commits intomasterfrom
emilk/smooth-scroll-to
Mar 4, 2024
Merged

Quickly animate scroll when calling ui.scroll_to_cursor etc #4119
emilk merged 10 commits intomasterfrom
emilk/smooth-scroll-to

Conversation

@emilk
Copy link
Copy Markdown
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
@emilk emilk deleted the emilk/smooth-scroll-to branch March 4, 2024 19:00
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024
…4119)

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](https://github.com/emilk/egui/assets/1148717/c5c8556d-476b-4597-842b-aa0e5927fbb9)
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