You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting the holdTime to currentTimeToMatch alone does not solve the issue, as startTime is set. If startTime is set to unresolved however, the animation freezes as expected. Am I reading the standard correct here, to set both startTime and holdTime?
Screenshots
Result of scrolling into view and setting playbackRate to 0:
Chrome:
Safari with polyfill:
The text was updated successfully, but these errors were encountered:
Problem
Setting the playback rate to 0 should probably freeze the animation, similar to pausing it.
Expected result
In Chromes implementation the animation freezes at the current time in the timeline.
Actual result
In the polyfill, the animation is reset
Probable cause
I think the cause is in
commitPendingPlay()
.Playing an animation (step 17) says:
But: the polyfill implementation sets holdTime to null:
scroll-timeline/src/proxy-animation.js
Lines 152 to 155 in daef204
Setting the holdTime to currentTimeToMatch alone does not solve the issue, as startTime is set. If startTime is set to unresolved however, the animation freezes as expected. Am I reading the standard correct here, to set both startTime and holdTime?
Screenshots
Result of scrolling into view and setting playbackRate to 0:
Chrome:
Safari with polyfill:
The text was updated successfully, but these errors were encountered: