diff --git a/src/components/messageStream/bubbles/VideoBubble.tsx b/src/components/messageStream/bubbles/VideoBubble.tsx index 440b384..a3917d8 100644 --- a/src/components/messageStream/bubbles/VideoBubble.tsx +++ b/src/components/messageStream/bubbles/VideoBubble.tsx @@ -87,6 +87,7 @@ function VideoAttachmentCard({ controls playsInline autoPlay + onClick={(e) => e.stopPropagation()} className="absolute inset-0 h-full w-full" /> { window.removeEventListener("keydown", onKey); - document.body.style.overflow = prevOverflow; + body.style.position = prev.position; + body.style.top = prev.top; + body.style.left = prev.left; + body.style.right = prev.right; + body.style.width = prev.width; + body.style.overflow = prev.overflow; + window.scrollTo(0, scrollY); }; }, [onClose]);