-
Notifications
You must be signed in to change notification settings - Fork 5
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
Slider label is read out frequently #237
Comments
Before it reads the name again VO makes the sound that indicates focus has moved. So I am wondering if the PDOM is getting redrawn and causing this. |
The slider is not getting redrawn but the screen summary gets redrawn frequently. |
I verified that every time a new element is created and added to the DOM VoiceOver re-reads the slider name. |
HTML Validator at https://validator.w3.org/nu/#textarea is reporting no issues. So this seems to be a problem with updating the PDOM so frequently. |
The reason we are is recreating PDOM elements and re-sorting the DOM so frequenlty in this sim is because we are using |
@terracoda just so you know, I discovered that this is a general scenery problem rather than an issue with the slider (phetsims/scenery#1026) For now, I think I can fix this in molecules-and-light by removing usages of |
Ok, I guess it is a new problem because this is the first time I have noticed it. |
Correct, I verified that molecules-and-light is the first sim to have the conditions necessary to cause this bug. |
After the above commits I am no longer seeing this issue. @terracoda can you please confirm? |
The label is only read once now. Sounds good, thanks @jessegreenberg ! |
There are still TODOs marked for this issue, discovered during phetsims/chipper#946 |
@jessegreenberg, I don't this issue was re-opened for me. Assigning to you. Please re-assign me when needed. |
The TODO is: Property.multilink( summaryProperties, ( photonWavelength, emitterOn, photonTarget, running, slowMotion, returnMoleculeButtonVisible ) => {
// TODO: Maybe use accessibleName instead if https://github.com/phetsims/molecules-and-light/issues/237 is fixed
dynamicDescription.innerContent = this.getSummaryString();
} ); |
Since #237 was closed, perhaps this should be changed to use |
Thanks @samreid, the real issue that needs to be fixed before the TODO can be removed is phetsims/scenery#1026, so I updated the code comment to reference that open issue instead. |
For some reason VoiceOver is repeating the slider label in this sim frequently. See #234 (comment).
I will investigate.
The text was updated successfully, but these errors were encountered: