-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(animationFrames): emit the timestamp from the rAF's callback (#5438)
* fix(animationFrames): emit the timestamp from the rAF's callback Emit the timestamp provided by rAF to align better with the rAF specification. Multiple scheduled rAF callbacks within the same frame will be called with the same timestamp. * fix(animationFrames): use shared observable for common use case * feat(animationFrames): provide timestamp and elapsed time * fix(animationFrames): fix type tests * fix: base elapsed on subscription time And use performance.now() for the elapsed calculation instead of the passed timestamp - see comment for explanation. * chore: update API guardian * chore: update animate-based tests Co-authored-by: Nicholas Jamieson <nicholas@cartant.com>
- Loading branch information
Showing
4 changed files
with
49 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters