artplayer-plugin-danmuku@4.3.19

This commit is contained in:
Harvey Zack committed 2022-05-02 07:03:17 +08:00
1 parent 526096bef3
commit e5753e8f82
8 files changed
+18 -11

No files matched your search

@@ -1,6 +1,6 @@
function getDanmuTop({ target, emits, clientWidth, clientHeight, marginBottom, marginTop, antiOverlap }) {
const danmus = emits
.filter((item) => item.mode === target.mode && item.top <= clientHeight - marginBottom)
.filter((item) => item.mode === target.mode && item.top > marginTop && item.top <= clientHeight - marginBottom)
.sort((prev, next) => prev.top - next.top);
if (danmus.length === 0) {