Skip to content

Commit

Permalink
Rename readAloud -> autoHear/autoHearEnabled, see phetsims/number-pla…
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisklus committed Apr 7, 2023
1 parent beed1c1 commit 6bda690
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/common/view/LocaleSwitch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export default class LocaleSwitch extends ABSwitch<boolean> {
}
);

// Speak speechData if readAloud is turned on.
this.onInputEmitter.addListener( () => preferences.readAloudProperty.value && utteranceQueue.speakSpeechData() );
// Speak speechData if autoHear is turned on.
this.onInputEmitter.addListener( () => preferences.autoHearEnabledProperty.value && utteranceQueue.speakSpeechData() );

const availableTextSpace = maxWidth - TOGGLE_SWITCH_SIZE.width - SPACING * 2;
let isAdjusting = false; // to prevent recursion that will exceed maximum call stack size
Expand Down

0 comments on commit 6bda690

Please sign in to comment.