Skip to content

updating ideView to avoiding the inconsistency#3795

Merged
raclim merged 2 commits intoprocessing:developfrom
Jatin24062005:Fixing-Inconsistent-Behavior-of-Play-Sketch-Button
Feb 19, 2026
Merged

updating ideView to avoiding the inconsistency#3795
raclim merged 2 commits intoprocessing:developfrom
Jatin24062005:Fixing-Inconsistent-Behavior-of-Play-Sketch-Button

Conversation

@Jatin24062005
Copy link
Contributor

Fixes #2642

Changes:
When switching between PC and mobile layouts, the preview runtime is invalidated while the Play-Sketch state may remain active, leading to a misleading “running” indicator and a blank or non-executing preview. Instead of allowing this inconsistent behavior, the editor now explicitly stops the sketch when a layout transition occurs. This ensures the UI accurately reflects the execution state, prevents unintended or implicit code execution, and avoids displaying a blank preview. Requiring an explicit user action to restart the sketch provides clearer feedback, improves reliability, and aligns with best practices for user control and security.

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • has no typecheck errors (npm run typecheck)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #123
  • meets the standards outlined in the accessibility guidelines

Copy link
Collaborator

@raclim raclim left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this! I think this could be a nice, straightforward solution!

@raclim raclim merged commit aee5c0b into processing:develop Feb 19, 2026
1 check passed
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.

Inconsistent Behavior of Play-Sketch Button Between PC and Mobile Modes

2 participants