phetsims / capacitor-lab-basics

"Capacitor Lab: Basics" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
6 stars 4 forks source link

Current arrows showing on both sides of the circuit #228

Closed phet-steele closed 6 years ago

phet-steele commented 6 years ago

Using 1.6.2 phet-io

  1. Lightbulb screen.
  2. Charge the plate, then connect to the light bulb.
  3. As the plate is discharging (while current arrows are visible), press Reset All.
  4. Note the arrows don't disappear right away. But more importantly, charging the plate now shows current arrows on the light bulb circuit even when disconnected.
screen shot 2018-01-29 at 11 18 29 am

Seen on macOS 10.13.2 Chrome. For phetsims/QA/issues/86.

jonathanolson commented 6 years ago

Both issues confirmed.

The arrows not disappearing right away seems on purpose (based on the code, and this code comment):

When current stops flowing, the node fades out over a period of time.

phet-steele commented 6 years ago

@jonathanolson looks like this new problem from your commit is ONLY in the Lightbulb screen:

Charge the plates and BEFORE the current arrows disappear, quickly disconnect then reconnect the plates from the battery. If done correctly, the current arrows will stick around and not fade away.

phet-steele commented 6 years ago

Fixed.