Skip to content

Commit

Permalink
boolean bug fix, for #536
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Dec 5, 2022
1 parent 3878cdb commit 115d3de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/common/view/sound/TickMarkBumpSoundClip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 115d3de

Please sign in to comment.