Skip to content

Commit

Permalink
use slider steps from #53 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed May 27, 2021
1 parent 8ec79a8 commit 0b14240
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/common/view/AmplitudeSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ class AmplitudeSlider extends AudibleSlider {
orientation: Orientation.VERTICAL,

// pdom options
keyboardStep: FMWConstants.AMPLITUDE_SLIDER_SNAP_INTERVAL,
shiftKeyboardStep: 1 / Math.pow( 10, FMWConstants.AMPLITUDE_SLIDER_DECIMAL_PLACES ), // finer grain
pageKeyboardStep: 2 * FMWConstants.AMPLITUDE_SLIDER_SNAP_INTERVAL, // coarser grain
// slider steps, see https://github.com/phetsims/fourier-making-waves/issues/53
keyboardStep: 0.1,
shiftKeyboardStep: 0.01, // finer grain
pageKeyboardStep: 0.25, // coarser grain

// phet-io options
tandem: Tandem.REQUIRED
Expand Down

0 comments on commit 0b14240

Please sign in to comment.