Skip to content

Conversation

J00nz
Copy link

@J00nz J00nz commented Dec 18, 2024

Added the ability to override the internal "now" function using the "setNow" function.

It simply takes the new function you want to override the default "performance.now" implementation.

Useful when you want to control the flow of time on a global scale in a dynamic manner.

@trusktr
Copy link
Member

trusktr commented Dec 18, 2024

Hello @J00nz, looks good! Can you mention this in the guide? Then it will be good to go.

@trusktr
Copy link
Member

trusktr commented Dec 19, 2024

I'll try to get to it tomorrow if you haven't already and then we'll get it in. :)

@J00nz
Copy link
Author

J00nz commented Dec 19, 2024

Great!
I added a section in the user-guide, I do however not write chinese, so perhaps it would be good to get help with that 🙏

@trusktr trusktr merged commit 87e6a43 into tweenjs:main Jan 11, 2025
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.

2 participants