fix: усовершенствовать события мыши для стабильного показа тултипа на всех строках
Build and deploy / build-deploy (push) Has been cancelled
Build and deploy / build-deploy (push) Has been cancelled
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user