phetsims / projectile-data-lab

"Projectile Data Lab" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
0 stars 0 forks source link

Reset the stopwatch when switching fields #320

Closed matthew-blackman closed 2 months ago

matthew-blackman commented 2 months ago

In https://github.com/phetsims/projectile-data-lab/issues/297, it was discovered that it doesn't make sense to keep the stopwatch running when switching fields. The timed projectile is no longer visible, so the timer doesn't apply. We don't want to introduce a field-specific timer state for the sake of simplicity. Let's clear and pause the stopwatch when switching fields to save the user a click.

samreid commented 2 months ago

Cherry picked in both sims.

samreid commented 2 months ago

Discovered in https://github.com/phetsims/qa/issues/1079

KatieWoe commented 2 months ago

Looks good in rc.3