diff --git a/app/static/index.html b/app/static/index.html
index cdf0e90..aebe486 100644
--- a/app/static/index.html
+++ b/app/static/index.html
@@ -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() {