Skip to content

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

Merged
ksen0 merged 2 commits into
processing:mainfrom
BhumitSahani:fix/onended-example-9339
Nov 2, 2026
Merged

ksen0 merged 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.

@ksen0
ksen0 merged commit 2d6a61a into processing:main Nov 2, 2026
3 checks passed
@p5-bot

p5-bot Bot commented Nov 2, 2026

Copy link
Copy Markdown

Continuous Release

CDN link

Published Packages

Commit hash: b8c09f9

Previous deployments

This is an automated message.

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

3 participants