Re: [csswg-drafts] [web-animations-1] Current time calculation has odd interaction with ScrollTimeline (#2075)

Another solution is:
- **D.** Redefine currentTime for scroll-linked animations to be based on the Timeline."currentDelta" as opposed to the Timeline.currentTime as follows:

```
current_timeline_time = Timeline.currentTime;
current_time = prev_current_time + (current_timeline_time – prev_timeline_time) * playback_rate;
prev_current_time = current_time;
prev_timeline_time = current_timeline_time;
```

This solution will ensure that scroll and document timeline linked animations behave similarly (no jump in the animation output) when playback_rate is changed.


-- 
GitHub Notification of comment by ogerchikov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2075#issuecomment-454969120 using your GitHub account

Received on Wednesday, 16 January 2019 22:30:33 UTC