From 0b9318753ece23b5f6f3892efe84247585037a6a Mon Sep 17 00:00:00 2001 From: samreid Date: Wed, 15 Apr 2020 14:32:26 -0600 Subject: [PATCH] Document about roundoff error, see https://github.com/phetsims/wave-interference/issues/484 --- js/common/view/WaveInterferenceSlider.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/common/view/WaveInterferenceSlider.js b/js/common/view/WaveInterferenceSlider.js index 16143fdb..dc989392 100644 --- a/js/common/view/WaveInterferenceSlider.js +++ b/js/common/view/WaveInterferenceSlider.js @@ -91,6 +91,7 @@ class WaveInterferenceSlider extends HSlider { timer.setTimeout( () => { + // Also account for roundoff error, since 0.99999 seems like close enough to the end of the input. if ( Math.abs( value - property.value ) <= 1E-6 ) { sliderBoundaryClickSoundClip.play(); }