-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent Behavior of Play-Sketch Button Between PC and Mobile Modes #2642
Comments
Let me know @lindapaiste and @raclim what's your view on this. Can i work on it? |
Interesting! We send a ping to the iframe via One solution might be to rework the Another solution might be to manually send a start sketch event in a |
I would like to work on this, if no one is working. |
Yes Please feel free to work on this. I am busy with other projects. Thanks for taking this. |
Hey @lindapaiste, One way you said was to store the Preview Frame in a variable, I have tried that but the Preview Frame re-renders, thus the saved data is lost. Another way was to manually start the sketch in useEffect, I have tried to use the |
@lindapaiste, I was attempting to address it differently with a useEffect to start startSketch when isPlaying is true. However, in the browser, I'm not observing the expected results. Any suggestions on why this might be happening |
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:
The text was updated successfully, but these errors were encountered: