Skip to content

Commit

Permalink
change safari workaround to only apply to macOS Safari, see https://g…
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed May 23, 2024
1 parent ddf55df commit 58282ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/AriaLiveAnnouncer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,11 @@ class AriaLiveAnnouncer extends Announcer {
// https://github.com/phetsims/scenery-phet/issues/491
stepTimer.setTimeout( () => {

if ( platform.safari ) {
if ( platform.safari && !platform.mobileSafari ) {

// Using `hidden` rather than clearing textContent works better on mobile VO,
// Using `hidden` rather than clearing textContent works better macOS VO,
// see https://github.com/phetsims/scenery-phet/issues/490
// However, it prevents all alerts on iOS VO, see https://github.com/phetsims/utterance-queue/issues/117
liveElement.hidden = true;
}
else {
Expand Down

0 comments on commit 58282ac

Please sign in to comment.