Skip to content

Commit

Permalink
add vertical and horizontal movement alerts to the ruler, phetsims/gr…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Dec 31, 2019
1 parent 6ef4d45 commit 4b3e1e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/view/ISLCRulerNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ define( require => {
else {
releaseRulerSoundPlayer = options.releaseRulerSoundPlayer;
}

// check if a sound player was provided for ruler motion and, if not, create a default
let movementSoundPlayer;
if ( options.movementSoundPlayer === null ) {
Expand Down Expand Up @@ -279,6 +279,10 @@ define( require => {

onGrab() {
grabRulerSoundPlayer.play();

// call this first to update the dsecriber state before the alert
rulerDescriber.onGrab();

grabbedUtterance.alert = rulerDescriber.getRulerGrabbedAlertable();
phet.joist.sim.utteranceQueue.addToBack( grabbedUtterance );
},
Expand Down

0 comments on commit 4b3e1e6

Please sign in to comment.