Skip to content

Commit

Permalink
add step sizing for MSS sliders, #105
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Mar 17, 2023
1 parent f045f85 commit 4b2390c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/common/view/ValuesColumnNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ export default class ValuesColumnNode extends VBox {
else if ( columnType === ValuesColumnTypes.MASS_SLIDER ) {
contentNode = new SolarSystemCommonNumberControl( body.massProperty, massRange, {
sliderOptions: {
keyboardStep: sliderStep,
pageKeyboardStep: sliderStep * 2,
thumbFill: colorProperty,
thumbFillHighlighted: new DerivedProperty( [ colorProperty ], color => color.colorUtilsBrighter( 0.7 ) ),
constrainValue: value => massRange.constrainValue( sliderStep * Utils.roundSymmetric( value / sliderStep ) )
Expand Down

0 comments on commit 4b2390c

Please sign in to comment.