Skip to content

Commit

Permalink
Fix layout animation repeat
Browse files Browse the repository at this point in the history
This fixes a bug with layout animation (**editor only**): If a layout's bounds change while it is currently performing a layout animation, sometimes it will repeat the same animation after the first animation has completed. This was particularly evident when using spring interpolation. The root cause was an incorrect comparison (using == rather than the implemented equals() function) between the target layout bounds and the current animated bounds.

In addition, this PR fixes an inconsistency between runtime layout animation and editor. Editor was previously restricting animation to relative layouts only, now we allow relative and absolute layout animations.

Diffs=
61e927c9cf Fix layout animation repeat (#8875)
  • Loading branch information
philter committed Jan 16, 2025
1 parent af9a1f3 commit eeb74d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5b9b388fe9a3874a4c6a3f81dff310c9091198c1
61e927c9cff9d2e5c86842ff4ea493bd6916d76a
2 changes: 1 addition & 1 deletion wasm/submodules/rive-runtime

0 comments on commit eeb74d5

Please sign in to comment.