chore(弹幕组件): 调整速度计算

This commit is contained in:
hzj 2026-01-20 17:04:18 +08:00
parent 1d33741249
commit 2431cd6eae

View File

@ -178,7 +178,7 @@ const getBarrageStyle = (item) => {
const generateBarrageProps = (item) => {
const textLength = item.content.length
return {
duration: Math.max(8 - textLength * 0.1, 5) * (100 / props.speed), // 0.25
duration: Math.min(5 + textLength * 0.1, 8) * (100 / props.speed), // 0.28
startPos: 0, //
}
}