Skip to content

fix(ios): restart render loop after setting state machine inputs#162

Open
mfazekas wants to merge 1 commit intomainfrom
fix/161-ios-play-on-input-set
Open

fix(ios): restart render loop after setting state machine inputs#162
mfazekas wants to merge 1 commit intomainfrom
fix/161-ios-play-on-input-set

Conversation

@mfazekas
Copy link
Collaborator

On iOS, when a state machine settles (isPlaying=false), setting an input doesn't restart the render loop so the change is never visually processed. Android handles this via its controller queue. Adds playIfNeeded() to the three input setters (setBooleanInputValue, setNumberInputValue, triggerInput) to match Android behavior.

Fixes #161

@mfazekas mfazekas force-pushed the fix/161-ios-play-on-input-set branch from 5802df0 to 7c4e7ee Compare February 27, 2026 06:52
@mfazekas mfazekas marked this pull request as ready for review February 27, 2026 06:52
@mfazekas mfazekas requested a review from HayesGordon February 27, 2026 06:52
On iOS, when a state machine settles (isPlaying=false), setting an input doesn't restart the render loop so the change is never visually processed. Android handles this via its controller queue. This adds playIfNeeded() to the three input setters to match Android behavior.

Fixes #161
@mfazekas mfazekas force-pushed the fix/161-ios-play-on-input-set branch from 7c4e7ee to ef3152d Compare February 27, 2026 13:26
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.

iOS: animation does not restart after changing state machine input machines

2 participants