diff --git a/extension/src/utils/overlay.ts b/extension/src/utils/overlay.ts index 93b5d58..570d16e 100644 --- a/extension/src/utils/overlay.ts +++ b/extension/src/utils/overlay.ts @@ -908,15 +908,10 @@ export async function initContentScript(ctx: { onInvalidated: (cb: () => void) = let hoverRafId: number | null = null; let hoverIntentTimer: ReturnType | null = null; - let lastHoverX = -1; - let lastHoverY = -1; function handleMouseMove(e: MouseEvent) { if (!overlayEnabled || !overlayHost) return; - lastHoverX = e.clientX; - lastHoverY = e.clientY; - if (hoverRafId !== null) { cancelAnimationFrame(hoverRafId); hoverRafId = null; @@ -924,11 +919,7 @@ export async function initContentScript(ctx: { onInvalidated: (cb: () => void) = hoverRafId = requestAnimationFrame(() => { hoverRafId = null; - if (hoverIntentTimer) clearTimeout(hoverIntentTimer); - hoverIntentTimer = setTimeout(() => { - hoverIntentTimer = null; - processHover(lastHoverX, lastHoverY, e); - }, 150); + processHover(e.clientX, e.clientY, e); }); } function getAnnotationsAtPoint(