4ccbe6b36f3a9fdd09c08ad21efa19d20cb593a0 kent Wed Feb 3 08:11:46 2021 -0800 Making it issue anchors only every 15 items in a list. This results in a bit less jumping. diff --git src/hg/lib/tablesTables.c src/hg/lib/tablesTables.c index 437e8fa..6d3007b 100644 --- src/hg/lib/tablesTables.c +++ src/hg/lib/tablesTables.c @@ -565,31 +565,31 @@ "&%s_facet_fieldVal=%s|url|" "&%s_page=1' " ">%s\n", returnUrl, varPrefix, op, varPrefix, field->fieldName, varPrefix, "", varPrefix, "Clear" ); } int valuesShown = 0; int valuesNotShown = 0; if (field->showAllValues) // Sort alphabetically if they want all values { slSort(&field->valList, facetValCmp); } - int extraAnchorPeriod = 10; + int extraAnchorPeriod = 15; int extraAnchorPos = 0; for (val = field->valList; val; val=val->next) { boolean specificallySelected = (val->selected && !field->allSelected); if ((val->selectCount > 0 && (field->showAllValues || valuesShown < facetUsualSize)) || specificallySelected) { ++valuesShown; ++extraAnchorPos; char *op = "add"; if (specificallySelected) op = "remove"; printf("