Description
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:
- Open the application in PC mode.
- Click the "Play-Sketch" button.
- Switch to mobile mode.
- Observe the behavior of the "Play-Sketch" button.