So animations with offsetMillis didn't work properly in paparazzi. This was due to the Transition apis tracking the startTimeNanos when a transition starts. Since this is set ahead of the transition, the delta to render the frame was always 0. For gif() methods that used start = 0 they render correctly because the starting frame is at 0 nanos.
The best way I could combat this was for cases in Compose where the caller was manually setting the startNanos for Paparazzi.takeSnapshots() I call multiple render calls with time 0 to ensure Transition apis have startTimeNanos = 0
So animations with
offsetMillis
didn't work properly in paparazzi. This was due to the Transition apis tracking thestartTimeNanos
when a transition starts. Since this is set ahead of the transition, the delta to render the frame was always 0. Forgif()
methods that usedstart = 0
they render correctly because the starting frame is at0
nanos.The best way I could combat this was for cases in Compose where the caller was manually setting the
startNanos
forPaparazzi.takeSnapshots()
I call multiple render calls with time 0 to ensure Transition apis havestartTimeNanos = 0
Fixes #627 #678