selfhost video, drop vimeo
This commit is contained in:
@@ -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);
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user