Skip to content
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

Launching doesn't resume after pressing Eraser button on Sampling Screen #289

Closed
Tracked by #1079
Nancy-Salpepi opened this issue Apr 11, 2024 · 8 comments
Closed
Tracked by #1079

Comments

@Nancy-Salpepi
Copy link

Test device
MacBook Air M1 chip

Operating System
14.4.1

Browser
Safari and FF

Problem description
For phetsims/qa#1068, on the Sampling Screen, if the Eraser button is pressed while the sim is continuously launching, the Launch Button is still in 'play mode' but no projectiles are being launched.

Steps to reproduce

  1. On the Sampling Screen, select Continuous mode
  2. Press the Launch button
  3. Press the Erase button

Visuals

eraseButton.mp4
@Nancy-Salpepi Nancy-Salpepi added the type:bug Something isn't working label Apr 11, 2024
@catherinecarter
Copy link

@samreid, @matthew-blackman, and I discussed the desired behavior for the erase button on the Sampling screen. A summary of our discussion:

  • It was proposed that since the Sampling screen is different than the other screens, that the eraser should also act as a "stop" button to pause data being collected
  • It was proposed to have the eraser behave like the other screens by clearing the field but continue launching

Our decision was that consistency is important. Therefore, the decision is to have the erase button behave like the other screens:

  • If the user is in single launch mode (i.e. no projectiles are auto-launching) and presses the eraser, the field and histogram clears, the button remains in single launch mode
  • If the user is in continuous launch mode (i.e. projectiles are auto-launching) and presses the eraser, the field and histogram clears, and the button remains in continuous mode, hence projectiles continue to come out

@matthew-blackman
Copy link
Contributor

Labeling this for additional QA scrutiny since it adds a little bit of complexity to an already complex part of the sim. Testing combinations of single/continuous modes and switching between them, along with clearing data, may reveal further edge cases.

@Nancy-Salpepi
Copy link
Author

@samreid @matthew-blackman this doesn't appear to be fixed. If I follow the same steps as in my original comment, I get the same result as in the video.

@matthew-blackman
Copy link
Contributor

Sorry for the false alarm! @samreid and I worked on this and fixed the behavior in the latest commit. It should be ready to test now.

@Nancy-Salpepi
Copy link
Author

Looks good to me on main!

@matthew-blackman
Copy link
Contributor

We also tested this with @catherinecarter and all looks well. The commits above are ready to cherry-pick.

@matthew-blackman
Copy link
Contributor

Please close after verifying.

@KatieWoe
Copy link

Looks good in rc.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants