Skip to content

Commit

Permalink
tweakers by 1, slider by 10, #173
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Aug 23, 2019
1 parent c2e1ed0 commit f6a5171
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/gravity-force-lab/view/MassControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ define( require => {
const gravityForceLab = require( 'GRAVITY_FORCE_LAB/gravityForceLab' );
const ISLCObjectControlPanel = require( 'INVERSE_SQUARE_LAW_COMMON/view/ISLCObjectControlPanel' );
const PhetFont = require( 'SCENERY_PHET/PhetFont' );
const Util = require( 'DOT/Util' );

// strings
const unitsKgString = require( 'string!GRAVITY_FORCE_LAB/units.kg' );
Expand Down Expand Up @@ -46,14 +47,14 @@ define( require => {
yMargin: 10,

numberControlOptions: {
delta: 10,
sliderOptions: {
thumbSize: THUMB_SIZE,
trackSize: TRACK_SIZE,
majorTickLength: ( THUMB_SIZE.height / 2 ) + ( TRACK_SIZE.height / 2 ) + 2,
minorTickSpacing: 0,
thumbFill: thumbColor.colorUtilsBrighter( 0.15 ),
thumbFillHighlighted: thumbColor.colorUtilsBrighter( 0.35 ),
constrainValue: v => Util.roundToInterval( v, 10 ),

// a11y
keyboardStep: 50,
Expand Down

0 comments on commit f6a5171

Please sign in to comment.