diff --git a/js/common/view/AudibleSlider.js b/js/common/view/AudibleSlider.js index aa3d86f6..8c8cb037 100644 --- a/js/common/view/AudibleSlider.js +++ b/js/common/view/AudibleSlider.js @@ -47,13 +47,15 @@ class AudibleSlider extends Slider { let tPlay = 0; assert && assert( !options.drag, 'AudibleSlider defines drag' ); - options.drag = () => { + options.drag = event => { // options.drag is called after the Property is set, so this is the current value. const currentValue = property.value; const dtPlay = Date.now() - tPlay; + //TODO https://github.com/phetsims/fourier-making-waves/issues/56 Is special handling needed if event.isFromPDOM(), like WaveInterferenceSlider ? + if ( currentValue !== previousValue ) { options.snapSound.isPlaying && options.snapSound.stop();