Skip to content

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

Open
@perminder-17

Description

@perminder-17

p5.js version

v2.9.3

What is your operating system?

Windows

Web browser and version

Chrome

Actual Behavior

The "Play-Sketch" button exhibits inconsistent behavior when transitioning between PC and mobile modes. When the button is activated in PC mode and then the mode is switched to mobile, the button appears to be in the "on" state, but the sketch does not run. Similarly, when activating the "Play-Sketch" button in mobile mode and switching back to PC mode, the button visually indicates that it's on, but the sketch does not execute.

20231127204521.mp4

Expected Behavior

The "Play-Sketch" button should seamlessly adapt to changes in screen size and consistently execute the sketch when activated. Regardless of whether the application is viewed in PC mode or mobile mode, the button should accurately reflect its functional state, and the sketch should run as expected. The user experience should remain smooth and responsive.

Steps to reproduce

Steps:

  1. Open the application in PC mode.
  2. Click the "Play-Sketch" button.
  3. Switch to mobile mode.
  4. Observe the behavior of the "Play-Sketch" button.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area:PreviewFor features and bugs relating to the embedded preview sketchBug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions