selfhost video, drop vimeo

This commit is contained in:
2026-06-29 11:06:25 +02:00
parent b06d8f1a18
commit 96018a56a3
+5
View File
@@ -50,4 +50,9 @@
document.addEventListener("mouseleave", hide, { passive: true }); document.addEventListener("mouseleave", hide, { passive: true });
window.addEventListener("blur", hide); window.addEventListener("blur", hide);
window.addEventListener("pagehide", hide); window.addEventListener("pagehide", hide);
// over a cross-origin iframe (vimeo, doom) we get no mousemove, so hide ours
// instead of leaving it frozen at the edge; it returns on the next move out
document.addEventListener("mouseover", function (e) {
if (e.target && e.target.tagName === "IFRAME") hide();
}, true);
})(); })();