artplayer-plugin-danmuku@4.3.22

This commit is contained in:
Harvey Zack committed 2022-05-03 12:03:43 +08:00
1 parent 21d4a50c54
commit c9cafbb55f
7 files changed
+10 -10

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 >= marginTop && item.top <= clientHeight - marginBottom)
.filter((item) => item.mode === target.mode && item.top <= clientHeight - marginBottom)
.sort((prev, next) => prev.top - next.top);
if (danmus.length === 0) {