phetsims / john-travoltage

"John Travoltage" is an educational simulation in HTML5, by PhET Interactive Simulations.
http://phet.colorado.edu/en/simulation/john-travoltage
GNU General Public License v3.0
4 stars 8 forks source link

Free floating electrons when sim state is set in the middle of discharge #458

Open KatieWoe opened 2 years ago

KatieWoe commented 2 years ago

Found during https://github.com/phetsims/phet-io/issues/1626. Seen with Win 11 Firefox on the master version on 2/25/22. If the state is set while in the middle of a discharge, the set sim does not finish the discharge, and electrons that were in the jump will free float around the area.

Steps:

  1. Go to the State wrapper
  2. Turn the state refresh rate to 0
  3. Fill John with electrons
  4. Start a discharge
  5. Very quickly hit set state

floatingelectrons

zepumph commented 2 years ago

We will cover this the next time we are working on PhET-iO in this repo.