chore(弹幕组件): 调整速度计算
This commit is contained in:
parent
b82abc8a65
commit
3e02409dc6
@ -173,7 +173,7 @@ const getBarrageStyle = (item) => {
|
||||
const generateBarrageProps = (item) => {
|
||||
const textLength = item.content.length
|
||||
return {
|
||||
duration: Math.min(5 + textLength * 0.1, 8), // 弹幕项持续时间(每字符增加0.2秒,持续时间不低于8秒)
|
||||
duration: Math.min(5 + textLength * 0.1, 10), // 弹幕项持续时间(每字符增加0.2秒,持续时间不低于8秒)
|
||||
startPos: 0, // 弹幕项起始位置
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user