4c4592f3425753099d19b07c7a623e091b4f5197 chmalee Mon Mar 9 16:18:07 2026 -0700 Fix for mouseover wiggles not showing up on page load, refs #37205 diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index 46da1e41fd2..e77472ea11e 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -5589,31 +5589,33 @@ } }, // any scrolling turns the popUp message off scroll: function() { if (mouseOver.visible) { mouseOver.popUpDisappear(); } }, addListener: function () { mouseOver.visible = false; if (window.browserTextSize) { mouseOver.browserTextSize = window.browserTextSize; } window.addEventListener('scroll', mouseOver.scroll, false); - window.addEventListener('load', mouseOver.getData, false); + // Call getData directly since the DOM is already parsed by the time + // $(document).ready() calls addListener. + mouseOver.getData(); } }; // var mouseOver ////////////////////// //// track search //// ////////////////////// var trackSearch = { searchKeydown: function (event) { if (event.which === 13) { // Required to fix problem on IE and Safari where value of hgt_tSearch is "-" // (i.e. not "Search"). // NOTE: must match TRACK_SEARCH_PAGER in hg/inc/searchTracks.h $("input[name=hgt_tsPage]").val(0);