diff --git a/app/static/index.html b/app/static/index.html index 0cd2f1c..cdf0e90 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -383,10 +383,14 @@ document.addEventListener('mouseover', e => { if (seg) { const targetSeg = seg.classList.contains('uptime-seg') ? seg : seg.querySelector('.uptime-seg[data-seg]'); if (targetSeg) showSegTip(targetSeg); + } else { + hideSegTip(); } }); document.addEventListener('mouseout', e => { - if (e.target.closest('.uptime-seg[data-seg]') || e.target.closest('.uptime-segs')) hideSegTip(); + if (!e.relatedTarget || !e.relatedTarget.closest('.seg-tip')) { + if (e.target.closest('.uptime-seg[data-seg]') || e.target.closest('.uptime-segs')) hideSegTip(); + } }); document.addEventListener('scroll', hideSegTip, true);