Skip to content

Conversation

@TheRealSyler
Copy link

With this change you can enable animations in web workers without getting an error and it removes the disable animation override when using the basic platform, so that you don't need to provide a custom platform to use animations.

This PR replaces requestAnimFrame with requestAnimationFrame, the current function will cause a Maximum call stack size exceeded error if the window is undefined and _running is true in this function, so it should be safe to just use requestAnimationFrame. The other use of the requestAnimFrame function does not cause an error if the window is undefined but i think we can also replace it.

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.

1 participant