Skip to content

Commit

Permalink
TODO, #56
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Apr 22, 2021
1 parent bc2bea0 commit a0f997d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/common/view/AudibleSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a0f997d

Please sign in to comment.