phetsims / ohms-law

"Ohm's Law" is an educational simulation in HTML5, by PhET Interactive Simulations.
http://phet.colorado.edu/en/simulation/ohms-law
GNU General Public License v3.0
5 stars 6 forks source link

Default step size for sliders too small? #164

Open emily-phet opened 3 years ago

emily-phet commented 3 years ago

Was working with Ohm's Law to make recordings for the description course. Noticed that it takes like 30 keypresses to traverse the whole slider. I don't think that's what we originally designed. When this sim gets worked on again, would be good to check that.

terracoda commented 2 years ago

The default number of step sizes for Voltage slider should be 18. The first step goes from 0.1 Volts to 0.5 Volts, and then up by 0.5 Volts with each step up to 9.0 Volts.

Seems to be working on master and in the published version.

terracoda commented 2 years ago

Oh but for Resistance the range is much wider 1000 ohms. The first step goes from 10 to 10 Ohms and then up by 20 Ohms with each step up to 1000 Ohms.

That indeed results in 50 key presses at the default step size. The Shift modifier goes to 1 Ohm which would be 999 key presses. With page up and page down shortcuts the step size is 99 Ohms - I don't think we we can adjust larger steps. I think it is just the max spread divided by 10.

Rounding to the nearest 20 Ohms happens if you go from using the page up and page down keys back to using the default key press, so I think it is implemented as intended.