phetsims / collision-lab

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

Elasticity Slider for Explore 2D #112

Closed brandonLi8 closed 4 years ago

brandonLi8 commented 4 years ago

In the design meeting 6/25/20, we decided to make the elasticity slider for Explore 2D go from 5-100% (documented in #87).

What if instead of changing the range of elasticity for different screens, we use Slider's built-in enabledRangeProperty. This is used in density's mass slider: image For the explore 2D screen, we could have the darker areas (where you can't drag the slider thumb) be from 0-5%.

We would also be able to keep the 'inelastic' and 'elastic' labels.

@arouinfar @ariel-phet thoughts?

brandonLi8 commented 4 years ago

Btw, I added this to master and I'm sticking with it for now. It looks like image

arouinfar commented 4 years ago

I think the behavior in master is nice. Using the enabledRangeProperty allows us to keep the "Inelastic" to "Elastic" range on all screens with the slider, which I think is preferable to using percentages for the min/max labels.