From 96018a56a32f63798c0b0865b3ec208085e5d803 Mon Sep 17 00:00:00 2001 From: karim Date: Mon, 29 Jun 2026 11:06:25 +0200 Subject: [PATCH] selfhost video, drop vimeo --- static/js/cursor.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/js/cursor.js b/static/js/cursor.js index aa5c5d1..1abe353 100644 --- a/static/js/cursor.js +++ b/static/js/cursor.js @@ -50,4 +50,9 @@ document.addEventListener("mouseleave", hide, { passive: true }); window.addEventListener("blur", 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); })();