nodebox / seed

Procedural Content Generator
https://seed.emrg.be/
MIT License
22 stars 8 forks source link

Stopping the animation when focussing the editor #35

Closed kunal-mohta closed 6 years ago

kunal-mohta commented 6 years ago

If you are not considering live-update for #27 , maybe this can do the job.

kunal-mohta commented 6 years ago

onInput is called when start entering characters into the textarea, so if I put the function to stop animation there then the first character will be lost. Can you tell me what the debounce function does here? Because I realized that it is the function that is causing the characters you enter while the animation is playing to just disappear. Removing it makes it possible to not only enter characters, but also to make live updates to the animation.