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 repeat mode broken after first iteration #57

Merged
merged 4 commits into from
Sep 28, 2022
Merged

Fix repeat mode broken after first iteration #57

merged 4 commits into from
Sep 28, 2022

Conversation

djeedai
Copy link
Owner

@djeedai djeedai commented Sep 27, 2022

Fix the repeat mode being broken after the first iteration due to
AnimClock::progress() reporting a progress greater than 1., which was
breaking the logic of Tween and Lens.

Also fix Tween::rewind() not restoring the original tween direction when
using a repeat strategy of RepeatStrategy::MirroredRepeat.

Fixes #42

Fix the repeat mode being broken after the first iteration due to
`AnimClock::progress()` reporting a progress greater than `1.`, which
was breaking the logic of `Tween` and `Lens`.

Fixes #42
@djeedai djeedai added the bug Something isn't working label Sep 27, 2022
@djeedai djeedai merged commit 175c8b7 into main Sep 28, 2022
@djeedai djeedai deleted the u/fix_repeat branch September 28, 2022 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Repeat broken after first iteration
1 participant