d588590989
- position:fixed popup was adding window.scrollX/scrollY to viewport coords from getBoundingClientRect(), making it appear far below link when scrolled - Off-screen check compared against innerHeight + scrollY instead of innerHeight - Added clamp to prevent negative coords (popup clipped off top/left edge) - Hide preview on scroll, modal open, and pagination clicks (capture phase) so stale popup doesn't linger after user navigates away Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>