ab64e884e099ac67de02d4b23e87dbe2d72eebd9
braney
  Wed Oct 19 15:41:57 2022 -0700
mouseovers for wiggles show the value being graphed, not (necessarily) the mean.

diff --git src/hg/hgTracks/wigTrack.c src/hg/hgTracks/wigTrack.c
index ba389e1..6d2d770 100644
--- src/hg/hgTracks/wigTrack.c
+++ src/hg/hgTracks/wigTrack.c
@@ -865,31 +865,31 @@
     skipMouseOvers = FALSE;
 					// condition is encountered
 /* ===== mouseOver calculations===== */
 for (x1 = 0; x1 < width; ++x1)
     {
     //int x = x1 + xOff;
     int preDrawIndex = x1 + preDrawZero;
     struct preDrawElement *p = &preDraw[preDrawIndex];
     if (enableMouseOver && !dropMouseOverData)
         {
         /* checking if mouseOver construction is allowed */
         if (!skipMouseOvers && (p->count > 0) && !(noAverage && p->count>1))
             {
             if (p->count > 0)	/* allow any number of values to display */
                 {
-                double thisValue = p->sumData/p->count;	/*average if count > 1*/
+                double thisValue = p->smooth;
                 if (mouseOverX2 < 0)    /* first valid data found */
                     {
                     struct wigMouseOver *dataItem;
                     AllocVar(dataItem);
                     mouseOverX2 = x1+1;
                     dataItem->x1 = x1;
                     dataItem->x2 = mouseOverX2;
                     dataItem->value = thisValue;
                     dataItem->valueCount = p->count;
                     slAddHead(&mouseOverData, dataItem);
                     previousValue = thisValue;
                     }
                 else	/* see if we need a new item */
                     {
 #define epsilonLimit 1.0e-6