This commit is contained in:
2026-05-31 02:20:54 +08:00
parent 71af9e0aa9
commit db5f4b1679

View File

@@ -12,6 +12,7 @@
list-style: none; list-style: none;
font-size: 0; font-size: 0;
line-height: 0; line-height: 0;
background: #000;
} }
ul { ul {
display: flex; display: flex;
@@ -199,7 +200,10 @@
ul.addEventListener("mouseleave", (e) => { ul.addEventListener("mouseleave", (e) => {
if (e.target.tagName === "VIDEO") { if (e.target.tagName === "VIDEO") {
e.target.pause(); let video = e.target
video.pause();
video.src = "";
video.src = video.dataset.src;
} }
}, true); }, true);