fix: использовать window.pageXOffset/pageYOffset для позиционирования тултипа
Build and deploy / build-deploy (push) Has been cancelled

This commit is contained in:
2026-10-22 09:50:37 +00:00
parent 3da33c9716
commit 7c73c82ac7
+2 -2
View File
@@ -363,8 +363,8 @@ function showSegTip(el) {
left = Math.max(8, Math.min(left, window.innerWidth - tr.width - 8));
let top = r.top - tr.height - 8;
if (top < 8) top = r.bottom + 8;
tip.style.left = `${left + window.scrollX}px`;
tip.style.top = `${top + window.scrollY}px`;
tip.style.left = `${left + window.pageXOffset}px`;
tip.style.top = `${top + window.pageYOffset}px`;
}
function hideSegTip() {