On Friday, January 27, 2017 at 10:04:50 AM UTC, Rupert Smith wrote:
>
> So I think that Animate messages are sent out on a timer, one per tick, 
> rather than one per animation needing updated? I was assuming that 
> Animation.subscription would generate one Animate message per animation 
> needing updated, so if two updates occurred on the same tick there would be 
> 2 messages. This seems not to be the case.
>

So I dropped the zipper from the Animate message, and just iterate the 
whole tree and update all Animation.States encountered in it, on each 
Animate message. This produces the desired effect.

Might get slow if the tree gets big? I'll solve that problem when it 
happens...

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to