Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Sep 14, 2023
1 parent 781b460 commit 439062d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/john-travoltage/view/ArmPositionSoundGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ class ArmPositionSoundGenerator extends SoundGenerator {

// determine if the new angle crossed over one or more 'sound points' since the last angle
if ( this.fullyEnabledProperty.value && previousAngle !== null ) {
numClickSoundsToPlay = Math.abs( Math.floor( previousAngle / binSize ) -
Math.floor( angle / binSize ) );
// TODO: This is a temporary workaround for an issue where the angle seems to switch from + to - at an odd place https://github.com/phetsims/tasks/issues/1129
numClickSoundsToPlay = Math.abs( Math.floor( previousAngle / binSize ) - Math.floor( angle / binSize ) );

//TODO https://github.com/phetsims/balloons-and-static-electricity/issues/570 This is a temporary workaround for an issue where the angle seems to switch from + to - at an odd place
if ( numClickSoundsToPlay > NUM_SOUND_POSITIONS / 2 ) {
numClickSoundsToPlay = 0;
}
Expand Down

0 comments on commit 439062d

Please sign in to comment.