Skip to content

Fix TransitionChangeHandlers getting stuck when two are run simultaneously#547

Merged
EricKuck merged 2 commits intobluelinelabs:developfrom
DSteve595:transition-lock-fix
Aug 11, 2019
Merged

Fix TransitionChangeHandlers getting stuck when two are run simultaneously#547
EricKuck merged 2 commits intobluelinelabs:developfrom
DSteve595:transition-lock-fix

Conversation

@DSteve595
Copy link
Copy Markdown
Collaborator

Fixes #545 and the failing test cases in #546.
This takes a defensive approach against the Transition API which, according to its docs, won't run a transition if another transition has already been added for the same scene root in the same frame. It checks to see if the transition has been started by the next frame, and if it hasn't, immediately runs the changes.

@EricKuck
Copy link
Copy Markdown
Member

This is a really clever fix, nice work! I've tested this with several different scenarios and they all seem to work great. Merging.

@EricKuck EricKuck merged commit 530bd55 into bluelinelabs:develop Aug 11, 2019
@DSteve595 DSteve595 deleted the transition-lock-fix branch March 19, 2020 23:40
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.

Using two TransitionChangeHandlers simultaneously results in one of them never ending

2 participants