From 444859d9407a63eed5a07cbda3998ad67a1d3403 Mon Sep 17 00:00:00 2001 From: Michael Kauzmann Date: Wed, 23 Nov 2022 18:46:05 -0700 Subject: [PATCH] boolean bug fix, for https://github.com/phetsims/ratio-and-proportion/issues/536 --- js/common/view/sound/TickMarkBumpSoundClip.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/common/view/sound/TickMarkBumpSoundClip.ts b/js/common/view/sound/TickMarkBumpSoundClip.ts index e510be88..818217db 100644 --- a/js/common/view/sound/TickMarkBumpSoundClip.ts +++ b/js/common/view/sound/TickMarkBumpSoundClip.ts @@ -53,7 +53,7 @@ class TickMarkBumpSoundClip extends SoundClip { // Not at max or min, crossed a tick mark value if ( currentValue !== this.positionRange.min && currentValue !== this.positionRange.max && - this.lastValue < tickValue && currentValue >= tickValue || this.lastValue > tickValue && currentValue <= tickValue ) { + ( this.lastValue < tickValue && currentValue >= tickValue || this.lastValue > tickValue && currentValue <= tickValue ) ) { // if enough time has passed since the last change if ( phet.joist.elapsedTime - this.timeOfLastClick >= MIN_INTER_CLICK_TIME ) {