-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples: fix 14_pause_tween which was trying to use the removed
relative values feature (`start('+500')`) and make it use `.delay(500)` instead, and avoid using negative values for delaye (`.delay(-500)`) in the 13_relative_start_time example because it may not be intuitive and plus that feature broke with the previous merge that fixed more important timing issues (especially with unfocused browser tabs) BREAKING: If you are using negative values for delay, f.e. `tween.delay(-500)`, instead manage the time values passed to your tweens manually. For example: ```js tweenOffset = 500 const tween = new Tween(...) tween.start(currentTime) tween.update(currentTime + tweenOffset) // advance it immediate immediately, as if it already started earlier // in the update loop tween.update(newCurrentTime + tweenOffset) ```
- Loading branch information
Showing
3 changed files
with
6 additions
and
5 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