processing / processing/p5.js-web-editor
Editor - set noLoop() on window.blur() ?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.7k
- Forks
- 1.7k
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 8
Description
Nature of issue?
- Existing feature enhancement
Feature enhancement details:
Referencing this issue for consideration: whether sketches running in the p5.js editor should set themselves to noLoop()/loop() based on window.blur()/window.focus(). It's a bigger issue for the p5.js references website – since there are cases when one might want to keep an editor sketch running continuously in the background.
Bringing this up as it's common to see students with multiple windows (+ browsers) open, occasionally having a few instances of the Editor in active tabs (in background or minimized) while they research sketches.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the linked p5.js-website issue #508, then locate where the editor handles window focus and blur events. Clarify whether sketches should pause and resume, including the stated case where an editor sketch should keep running in the background; no file or test is named in this issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100