From b50407d9c5b80d533d65fd7f078ac39ac6f11b2d Mon Sep 17 00:00:00 2001 From: zepumph Date: Wed, 23 Feb 2022 09:25:00 -0700 Subject: [PATCH] support when values are equal, https://github.com/phetsims/ratio-and-proportion/issues/430 --- js/common/view/describers/HandPositionsDescriber.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/common/view/describers/HandPositionsDescriber.ts b/js/common/view/describers/HandPositionsDescriber.ts index c11499b0..9dd13e90 100644 --- a/js/common/view/describers/HandPositionsDescriber.ts +++ b/js/common/view/describers/HandPositionsDescriber.ts @@ -356,6 +356,9 @@ class HandPositionsDescriber { else if ( currentDistance > this.previousDistance ) { distanceProgressString = options.fartherString; } + else { + return null; // somehow positions are equal, same case as in proportion + } return distanceProgressString; }