653a84792fd3352f80edde07a204524000753006 chmalee Thu Mar 28 15:06:47 2024 -0700 Make secondary tooltop timer much longer, refs #33301 diff --git src/hg/js/utils.js src/hg/js/utils.js index 7783dc7..e401750 100644 --- src/hg/js/utils.js +++ src/hg/js/utils.js @@ -4114,31 +4114,31 @@ lastMouseoverEle = ele1; if (mouseoverTimer) { // user is moving their mouse around, make sure where they stop is what we show clearTimeout(mouseoverTimer); } // If there is no tooltip present, we want a small but noticeable delay // before showing a tooltip if (canShowNewMouseover) { if (!tooltipIsVisible()) { mouseoverTimer = setTimeout(showMouseoverText, 500, e); } else { // the user has a tooltip visible already, so our timer for showing // a new one can be shorter because the user expects another one to // pop up, but we still need to be conscious that they may be moving // the mouse to the tooltip itself. The mousemoveHelper() deals with that - mouseoverTimer = setTimeout(showMouseoverText, 100, e); + mouseoverTimer = setTimeout(showMouseoverText, 300, e); } } } function addMouseover(ele1, text = null, ele2 = null) { /* Adds wrapper elements to control various mouseover events */ if (!mouseoverContainer) { mouseoverContainer = document.createElement("div"); mouseoverContainer.className = "tooltip"; mouseoverContainer.style.position = "fixed"; mouseoverContainer.style.display = "inline-block"; mouseoverContainer.style.visibility = "hidden"; mouseoverContainer.style.opacity = "0"; mouseoverContainer.id = "mouseoverContainer"; let tooltipTextSize = localStorage.getItem("tooltipTextSize");