Skip to content

Commit

Permalink
Fix layout animation runtime
Browse files Browse the repository at this point in the history
Fixes an issue where layout animation wasn't working in runtimes when using hold keys.

Diffs=
9d5076b883 Fix layout animation runtime (#8340)

Co-authored-by: Philip Chung <[email protected]>
  • Loading branch information
philter and philter committed Oct 16, 2024
1 parent c7ca3ed commit fcb4088
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
638ee6434ebac8f230de6ea69bc70b907b3ca8ce
9d5076b88363c7811a9a70107ee43013b8bfd0cb
4 changes: 2 additions & 2 deletions src/layout_component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -709,8 +709,8 @@ void LayoutComponent::updateLayoutBounds()
m_animationData.fromBounds =
AABB(m_layoutLocationX,
m_layoutLocationY,
m_layoutLocationX + this->width(),
m_layoutLocationY + this->height());
m_layoutLocationX + m_layoutSizeWidth,
m_layoutLocationY + m_layoutSizeHeight);
m_animationData.toBounds =
AABB(left, top, left + width, top + height);
if (m_animationData.elapsedSeconds > 0.1)
Expand Down

0 comments on commit fcb4088

Please sign in to comment.