chore(弹幕组件): 速度调整
This commit is contained in:
parent
c70047678c
commit
938e83d37f
@ -178,7 +178,7 @@ const getBarrageStyle = (item) => {
|
|||||||
const generateBarrageProps = (item) => {
|
const generateBarrageProps = (item) => {
|
||||||
const textLength = item.content.length
|
const textLength = item.content.length
|
||||||
return {
|
return {
|
||||||
duration: Math.max(8 - textLength * 0.2, 5) * (100 / props.speed), // 弹幕项持续时间(每字符减少0.2秒,持续时间不低于5秒)
|
duration: Math.max(8 - textLength * 0.1, 5) * (100 / props.speed), // 弹幕项持续时间(每字符减少0.2秒,持续时间不低于5秒)
|
||||||
startPos: 0, // 弹幕项起始位置
|
startPos: 0, // 弹幕项起始位置
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user