numberscope / frontscope

Numberscope's front end and user interface: responsible for specifying sequences and defining and displaying visualizers
MIT License
7 stars 15 forks source link

Implement "Paused State" for visualizers #434

Open gwhitney opened 3 months ago

gwhitney commented 3 months ago

Right now there is a pause/play button for visualizers, but various occurrences such as a resize alter the state of that. As it is a human-manipulated control, we want to give it more respect. So we want to create a stronger "Paused State": clicking the pause button puts a visualizer in Paused State, and nothing can leave that state short of another specific human interaction, e.g., clicking the play button (and maybe only that gesture).

While in the Paused State, a visualizer is allowed to draw at most one new frame as a consequence of any other interaction: resizing, parameter update, mouse click, etc. It should not have mouseover behaviors while paused (unless anyone disagrees with that restriction). See https://github.com/orgs/numberscope/discussions/6#discussioncomment-10006613