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
I believe there's a bug with the behavior of play() when a timeline animation is completed (fwiw I also have autoplay: false).
The animation restarts, but TL.completed (in chrome console) shows false.
When triggering play() again in this fake-restarted state, the animation is interrupted and restarted.
And kind of related, when using TL.seek(t) with t<TL.duration, the TL.completed flag stays false, and TL.play() has no effect. This behavior seems wrong also.
I have the following fixes for now:
mySvg.on({// Some kind of playItSafe() function which doesn't fake-restart.mouseenter: function(){TL.completed ? null : TL.play()},mouseleave: TL.pause,click: TL.restart});seekbar.addEventListener('input',function(){if(TL.completed&&seekbar.value<100){TL.restart();TL.pause();}TL.seek(TL.duration*seekbar.value/100);});
The text was updated successfully, but these errors were encountered:
I believe there's a bug with the behavior of
play()
when a timeline animation is completed (fwiw I also have autoplay: false).The animation restarts, but
TL.completed
(in chrome console) shows false.When triggering
play()
again in this fake-restarted state, the animation is interrupted and restarted.And kind of related, when using
TL.seek(t)
witht<TL.duration
, theTL.completed
flag stays false, andTL.play()
has no effect. This behavior seems wrong also.I have the following fixes for now:
The text was updated successfully, but these errors were encountered: