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); })();