Skip to content
Snippets Groups Projects
Unverified Commit 175c8b74 authored by Jerome Humbert's avatar Jerome Humbert Committed by GitHub
Browse files

Fix repeat mode broken after first iteration (#57)

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
parent fdc3eded
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Removed the `tweening_type` parameter from the signature of `Tween<T>::new()`; use `with_repeat_count()` and `with_repeat_strategy()` instead.
- Animators now always have a tween (instead of it being optional). This means the default animator implementation was removed.
- `Delay::new()` now panics if the `duration` is zero. This prevents creating no-op `Delay` objects, and avoids an internal edge case producing wrong results.
- Tweens moving to `TweenState::Completed` are now guaranteed to freeze their state. In particular, this means that their direction will not flip at the end of the last loop if their repeat strategy is `RepeatStrategy::MirroredRepeat`.
### Removed
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment