3c44fbeeb6ef05447f7caff6d4156f4b3083c4b1 chmalee Fri Jun 14 16:21:43 2024 -0700 Remove 'drag select or click to zoom' tooltip, refs #33540 diff --git src/hg/js/utils.js src/hg/js/utils.js index 10182bc..8907a01 100644 --- src/hg/js/utils.js +++ src/hg/js/utils.js @@ -4178,31 +4178,32 @@ if (ele1) { ele1.setAttribute("mouseoverText", text); ele1.addEventListener("mouseover", showMouseover, {capture: true}); } } function titleTagToMouseover(mapEl) { /* for a given area tag, extract the title text into a div that can be positioned * like a standard tooltip mouseover next to the item */ addMouseover(mapEl, mapEl.title); } function convertTitleTagsToMouseovers() { /* make all the title tags in the document have mouseovers */ $("[title]").each(function(i, a) { - if (a.title !== undefined && a.title.startsWith("click & drag to scroll")) + if (a.title !== undefined && + (a.title.startsWith("click & drag to scroll") || a.title.startsWith("drag select or click to zoom"))) a.title = ""; else if (a.title !== undefined && a.title.length > 0) { if (a.title.startsWith("Click to alter the display density") || a.title.startsWith("drag select or click to zoom")) { // these tooltips have a longer delay: a.setAttribute("tooltipDelay", "delayed"); } titleTagToMouseover(a); } }); /* Mouseover should clear if you leave the document window altogether */ document.body.addEventListener("mouseleave", (ev) => { clearTimeout(mouseoverTimer); if (mousemoveController) { mousemoveController.abort(); }