b551f6c3ac801dbb5b8a436d4ae646772d4eaded
braney
  Wed Jul 15 16:42:58 2026 -0700
Revert the "0 bases" -> "1 base" ruler scale-bar change from 94f9b53d3db.

At single-base zoom the base-position scale bar reads "0 bases" again, as it
does on the RR. QA reviewed the dev version and preferred the existing RR
behavior over the reworked ruler text, so rather than keep iterating we match
the RR. This touches only computeScaleBar; the two JavaScript click-behavior
fixes from 94f9b53d3db (symmetric single-click recenter and the config-strip
click fix) stay in place. refs #27113

diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c
index 73633a0a71d..3ce6f9ba3be 100644
--- src/hg/hgTracks/hgTracks.c
+++ src/hg/hgTracks/hgTracks.c
@@ -1950,38 +1950,30 @@
     {
     scaleBases = pow(10, numFigs);
     scaleBasesTextNum = pow(10, numFigs % 3);
     }
 else if (frontNum > 4)
     {
     scaleBases = 2 * pow(10, numFigs);
     scaleBasesTextNum = 2 * pow(10, numFigs % 3);
     }
 if ((numFigs >= 3) && (numFigs < 6))
     baseWord = "kb";
 else if ((numFigs >= 6) && (numFigs < 9))
     baseWord = "Mb";
 else if ((numFigs >= 9) && (numFigs < 12))
     baseWord = "Gb";
-// At single-base zoom numBases is 1, which sends the frontNum==1 branch below zero
-// and rounds the scale down to a nonsensical "0 bases".  Never let it drop below one base.
-if (scaleBases < 1)
-    scaleBases = 1;
-if (scaleBasesTextNum < 1)
-    scaleBasesTextNum = 1;
-if ((scaleBasesTextNum == 1) && sameString(baseWord, "bases"))
-    baseWord = "base";
 safef(scaleText, scaleTextSize, "%d %s", scaleBasesTextNum, baseWord);
 return scaleBases;
 }
 
 enum trackVisibility limitedVisFromComposite(struct track *subtrack)
 /* returns the subtrack visibility which may be limited by composite with multi-view dropdowns. */
 {
 if (tdbIsCompositeChild(subtrack->tdb))
     {
     if (!subtrack->limitedVisSet)
         {
         subtrack->visibility = tdbVisLimitedByAncestors(cart, subtrack->tdb, TRUE, TRUE);
         limitVisibility(subtrack);
         }
     }