That worked like a charm. Thanks! I changed subscriptions = handleSubs in
App.program and added this. CPU not under control.
handleSubs : Model -> Sub Msg
handleSubs model =
if model.liveAnims then
Sub.batch
[ Window.resizes WinResize
, Mouse.moves MouseMove
, Mouse.clicks MouseClick
, Mouse.touches TouchEnd
, AnimationFrame.times Ticker
]
else
Sub.batch
[ Window.resizes WinResize
, Mouse.moves MouseMove
, Mouse.clicks MouseClick
, Mouse.touches TouchEnd
]
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.