-
Notifications
You must be signed in to change notification settings - Fork 18
Description
What would you like to achieve?
Lively Morphic had a very nice overlay on the native JavaScript timing functions -- stepping. In order to run a script on a Morph every n milliseconds, the call was simple: morph.startStepping(<scriptName>, <time in milliseconds)
(the order may be wrong, I'm doing this from memory.). morph.stopStepping()
stopped the stepping (of all stepping scripts).
It could have been improved (basically, UI/methods to view and control individual stepping scripts) but it was a huge improvement over the native JS calls.
The problem is that it was tied to Morph
, and, in a Component/ViewModel architecture it's not clear if this is available or how to use it. So guidance is appreciated.
How are you trying to achieve that
I assume the simplest way to do this is just to attach the stepping methods to ViewModel
Alternative solutions
If applicable, what other solutions have you tried?
Additional Resources
Please provide links to any custom code that might be necessary to grasp your problem. Screenshots of custom component, etc. are also appreciated.
Version: Please paste the lively.next commit on which the problem occurred here (use the copy button of the Version Checker in the bottom left corner).