mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 14:41:20 -08:00
修复尺寸变化时的弹幕偏移bug
This commit is contained in:
1 parent
573c549ce1
commit
afcb601c84
4 files changed
+5
-3
No files matched your search
@@ -67,7 +67,8 @@ export default function getDanmuTop(ins, danmu) {
|
||||
item.mode === danmu.mode &&
|
||||
item.$state === 'emit' &&
|
||||
item.$ref &&
|
||||
item.$ref.style.fontSize === danmu.$ref.style.fontSize,
|
||||
item.$ref.style.fontSize === danmu.$ref.style.fontSize &&
|
||||
parseFloat(item.$ref.style.top) <= playerData.height - marginBottom,
|
||||
)
|
||||
.map(item => {
|
||||
const danmuData = getRect(item.$ref);
|
||||
|
||||
Reference in new issue
Block a user