Optimize setBar event and reduce delay for hiding chapter title in artplayer-plugin-chapter

This commit is contained in:
Harvey Zack committed 2024-06-03 00:17:32 +08:00
1 parent e8d7ae91f0
commit 94e34320e0
6 files changed
+20 -13

No files matched your search

@@ -204,7 +204,7 @@ function artplayerPluginChapter({ chapters = [] }) {
clearTimeout(titleTimer);
titleTimer = setTimeout(()=>{
setStyle($title, "display", "none");
}, 1000);
}, 500);
}
} else if (type === "hover") showTitle({
$chapter,