Skip to content
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

Closed
jessegreenberg opened this issue Dec 11, 2019 · 15 comments
Closed

Slider label is read out frequently #237

jessegreenberg opened this issue Dec 11, 2019 · 15 comments
Assignees

Comments

@jessegreenberg
Copy link
Contributor

For some reason VoiceOver is repeating the slider label in this sim frequently. See #234 (comment).

I will investigate.

@jessegreenberg
Copy link
Contributor Author

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.

@jessegreenberg
Copy link
Contributor Author

The slider is not getting redrawn but the screen summary gets redrawn frequently.

@jessegreenberg
Copy link
Contributor Author

I verified that every time a new element is created and added to the DOM VoiceOver re-reads the slider name.

@jessegreenberg
Copy link
Contributor Author

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.

@jessegreenberg
Copy link
Contributor Author

The reason we are is recreating PDOM elements and re-sorting the DOM so frequenlty in this sim is because we are using accessibleName setter so frequently. And that is why we aren't seeing this issue in any other issues.

@jessegreenberg
Copy link
Contributor Author

@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 setAccessibleName.

@terracoda
Copy link

terracoda commented Dec 11, 2019

Ok, I guess it is a new problem because this is the first time I have noticed it.

@jessegreenberg
Copy link
Contributor Author

Correct, I verified that molecules-and-light is the first sim to have the conditions necessary to cause this bug.

@jessegreenberg
Copy link
Contributor Author

After the above commits I am no longer seeing this issue. @terracoda can you please confirm?

@terracoda
Copy link

The label is only read once now. Sounds good, thanks @jessegreenberg !

@samreid
Copy link
Member

samreid commented May 21, 2020

There are still TODOs marked for this issue, discovered during phetsims/chipper#946

@samreid samreid reopened this May 21, 2020
@terracoda
Copy link

terracoda commented May 26, 2020

@jessegreenberg, I don't this issue was re-opened for me. Assigning to you. Please re-assign me when needed.

@samreid
Copy link
Member

samreid commented May 26, 2020

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();
    } );

@samreid
Copy link
Member

samreid commented May 26, 2020

Since #237 was closed, perhaps this should be changed to use accessibleName?

@jessegreenberg
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants