Skip to content

Commit

Permalink
voice responses on start/end mouse drag, #413
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Dec 2, 2021
1 parent 8ce8191 commit e3e4451
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions js/common/view/RatioHalf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,11 @@ class RatioHalf extends Rectangle {
},
endDrag: () => {
viewSounds.boundarySoundClip.onEndInteraction( options.ratioTupleProperty.value.getForTerm( this.ratioTerm ) );

// @ts-ignore
this.ratioHandNode.voicingSpeakFullResponse( {
nameResponse: null
} );
},
isRight: options.isRight,

Expand Down Expand Up @@ -357,6 +362,11 @@ class RatioHalf extends Rectangle {

options.setJumpingOverProportionShouldTriggerSound( true );
viewSounds.boundarySoundClip.onStartInteraction();

// @ts-ignore
this.ratioHandNode.voicingSpeakFullResponse( {
contextResponse: null
} );
},
drag: () => {
this.isBeingInteractedWithProperty.value = true;
Expand Down Expand Up @@ -392,6 +402,11 @@ class RatioHalf extends Rectangle {
// Support context response on interaction end from mouse/touch input.
// @ts-ignore
this.ratioHandNode.alertContextResponse();

// @ts-ignore
this.ratioHandNode.voicingSpeakFullResponse( {
nameResponse: null
} );
},

// phet-io
Expand Down

0 comments on commit e3e4451

Please sign in to comment.