Skip to content

Document when blankCanvas calls its argument #79

@nomeata

Description

@nomeata

It took me a bit of experimenting and help in #77 to figure out that:

  • blankCanvas executes its argument (say run) the moment the user opens the browser windows,
  • opening a second browser window will execute a new, independent instance of run
  • closing a window browser does not stop the instance
  • reloading hence starts a new instance (useful after the window changed size), but the previous keeps running.

So if one is creating animations and reloads the page a few times, many instances are running in parallel.

Is the above correct? Could it be added to the docs of blankCanvas?

Also, why is it not possible to kill an instance after the browser window has been closed/reloaded?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions