-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Voicing says some statements when turned off in toolbar #314
Comments
I thought this would work, but I am confused. First, setting Index: js/Sim.ts
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/js/Sim.ts b/js/Sim.ts
--- a/js/Sim.ts (revision 1c4aa3e3661068b54d1e623a1c33cf134aa1188d)
+++ b/js/Sim.ts (date 1672852199050)
@@ -820,8 +820,10 @@
// pdom - modal dialogs should be the only readable content in the sim
this.setPDOMViewsVisible( false );
- // voicing - responses from Nodes hidden by the modal dialog should not voice.
+ // voicing - Responses from Nodes hidden by the modal dialog should not voice. Contents of the popup
+ // should voice if "Sim Voicing" is enabled.
this.setNonModalVoicingVisible( false );
+ this.topLayer.voicingVisibleProperty.value = voicingManager.voicingFullyEnabledProperty.value;
}
if ( popup.layout ) {
popup.layout( this.screenBoundsProperty.value! );
@@ -842,8 +844,9 @@
if ( this.modalNodeStack.length === 0 ) {
// After hiding all popups, Voicing becomes enabled for components in the simulation window only if
- // "Sim Voicing" switch is on.
+ // "Sim Voicing" switch is on. C
this.setNonModalVoicingVisible( voicingManager.voicingFullyEnabledProperty.value );
+ this.topLayer.voicingVisibleProperty.value = false;
// pdom - when the dialog is hidden, make all ScreenView content visible to assistive technology
this.setPDOMViewsVisible( true );
|
OK, I found why // We need an "unattached" utterance so that when the close button fires, hiding the close button, we still hear the context response.
const contextResponseUtterance = new Utterance( {
priority: Utterance.MEDIUM_PRIORITY
} ); But this implementation will also make it impossible to prevent speaking "Close" with |
OK, here is my status on this issue:
@zepumph over to you to verify/review. |
phetsims/ratio-and-proportion#546 closed and thus so can this! |
Test device
MacBook Air (m1 chip)
Operating System
macOS 13.0.1
Browser
safari and chrome
Problem description
For phetsims/qa#868 and possibly related to phetsims/ratio-and-proportion#541 after turning off Voicing in the Toolbar I still hear:
This doesn't happen with published GFLB.
Also--in Ratio and Proportion in Master, I will also hear the screen name and sim title when selecting a screen from the Home Screen. Ex: "Discover Screen. Ratio and Proportion"
Steps to reproduce
Visuals
frictionVoicing.mov
The text was updated successfully, but these errors were encountered: