mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 09:41:20 -08:00
artplayer@4.3.18
This commit is contained in:
1 parent
c3e5afe4d3
commit
21d4a50c54
10 files changed
+15
-15
No files matched your search
@@ -8,7 +8,7 @@ export default function getDanmuTop({
|
||||
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 >= marginTop && item.top <= clientHeight - marginBottom)
|
||||
.sort((prev, next) => prev.top - next.top);
|
||||
|
||||
if (danmus.length === 0) {
|
||||
|
||||
@@ -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 >= marginTop && item.top <= clientHeight - marginBottom)
|
||||
.sort((prev, next) => prev.top - next.top);
|
||||
|
||||
if (danmus.length === 0) {
|
||||
|
||||
Reference in new issue
Block a user