phetsims / pendulum-lab

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

Cannot switch from Planet X to Custom gravity #22

Closed arouinfar closed 9 years ago

arouinfar commented 9 years ago

It is currently impossible to switch from Planet X to Custom gravity. When using the drop-down menu to switch from an option with a known value of gravity to Custom, the slider maintains its current position/value. However, when switching from Planet X to Custom, the value of g should return to whatever value it had immediately before Planet X was selected.

The desired behavior is best exemplified in the Bending Light Java sim, so using it as an example here. (http://phet.colorado.edu/en/simulation/bending-light)

Setting a custom value: image Using the drop-down menu to select an option with an unknown value: image Using the drop-down menu to return to the custom option: image

Another example: Selecting water from the drop-down menu: image Choosing an option with an unknown value: image Selecting custom: image

Assigning to @andrey-zelenkov

andrey-zelenkov commented 9 years ago

Fixed switching from Planet X to Custom Planet. Reassign to @arouinfar for verification.

arouinfar commented 9 years ago

Looks good! Closing.