Skip to content

Fix isDone assignment in onended() reference example - #9346

Open
BhumitSahani wants to merge 2 commits into
processing:mainfrom
BhumitSahani:fix/onended-example-9339
Open

BhumitSahani wants to merge 2 commits into
processing:mainfrom
BhumitSahani:fix/onended-example-9339

Conversation

@BhumitSahani

Copy link
Copy Markdown
Contributor

Resolves #9339

Changes:

  • Corrected the handleEnd() example so isDone is set to true when playback ends.
  • This allows the example's draw() function to display the completed state as intended.
Screenshots of the change:

PR Checklist

Copilot AI balanced review requested due to automatic review settings October 27, 2026 12:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[p5.js 2.0+ Bug Report]: Incorrect isDone assignment in MediaElement.onended() example

2 participants