Skip to content

animations: add go_at and go_at_mut#2868

Closed
edwloef wants to merge 1 commit intoiced-rs:masterfrom
edwloef:go-from
Closed

animations: add go_at and go_at_mut#2868
edwloef wants to merge 1 commit intoiced-rs:masterfrom
edwloef:go-from

Conversation

@edwloef
Copy link
Copy Markdown
Contributor

@edwloef edwloef commented Mar 29, 2025

I found myself calling go a lot when receiving window::Event::RedrawRequested, where I already have an instant provided to me, so to avoid potential desync issues and to save a bunch of libc calls I added these two functions. Additionally, I could see this being useful to start animations in the past, e.g. if you want to start in the middle of a transition state, which as far as I can tell wasn't possible before since the Duration used for animation delay is unsigned.

@edwloef edwloef changed the title animations: add go_from and go_from_mut animations: add go_at and go_at_mut Apr 7, 2025
@edwloef
Copy link
Copy Markdown
Contributor Author

edwloef commented Apr 29, 2025

This was implemented as part of #2910

@edwloef edwloef closed this Apr 29, 2025
@edwloef edwloef deleted the go-from branch April 29, 2025 20:29
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.

1 participant