(READ ONLY) Margin is an open annotation layer for the internet. Powered by the AT Protocol. margin.at
extension web atproto comments
99
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix

+1 -10
+1 -10
extension/src/utils/overlay.ts
··· 908 908 909 909 let hoverRafId: number | null = null; 910 910 let hoverIntentTimer: ReturnType<typeof setTimeout> | null = null; 911 - let lastHoverX = -1; 912 - let lastHoverY = -1; 913 911 914 912 function handleMouseMove(e: MouseEvent) { 915 913 if (!overlayEnabled || !overlayHost) return; 916 - 917 - lastHoverX = e.clientX; 918 - lastHoverY = e.clientY; 919 914 920 915 if (hoverRafId !== null) { 921 916 cancelAnimationFrame(hoverRafId); ··· 924 919 925 920 hoverRafId = requestAnimationFrame(() => { 926 921 hoverRafId = null; 927 - if (hoverIntentTimer) clearTimeout(hoverIntentTimer); 928 - hoverIntentTimer = setTimeout(() => { 929 - hoverIntentTimer = null; 930 - processHover(lastHoverX, lastHoverY, e); 931 - }, 150); 922 + processHover(e.clientX, e.clientY, e); 932 923 }); 933 924 } 934 925 function getAnnotationsAtPoint(