Skip to content

Commit

Permalink
left/right edge bug fix when both objects are right most, and you foc…
Browse files Browse the repository at this point in the history
…us right object, #124
  • Loading branch information
zepumph committed Feb 19, 2019
1 parent 7b2bc1e commit ce839fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/gravity-force-lab/view/MassNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ define( function( require ) {
*/
resetAriaValueText: function() {
const positionDescriber = GravityForceLabPositionDescriber.getDescriber();
if ( positionDescriber.objectAtEdge( this.enum ) ) {
this.ariaValueText = positionDescriber.getEdgeValueText( this.enum );
if ( positionDescriber.objectTouchingBoundary( this.enum ) ) {
this.ariaValueText = positionDescriber.getBoundaryTouchingValueText( this.enum );
}
else {
this.ariaValueText = positionDescriber.getPositionAndDistanceFromOtherObjectText( this.enum );
Expand Down

0 comments on commit ce839fa

Please sign in to comment.