修复弹幕太快时消息平滑失效的问题

This commit is contained in:
John Smith 2019-12-01 16:36:50 +08:00
parent a7faac5425
commit a927282e77

View File

@ -208,7 +208,8 @@ export default {
enqueueMessages(messages) {
if (this.lastEnqueueTime) {
let interval = new Date() - this.lastEnqueueTime
if (interval > 0) {
// B1S
if (interval > 100) {
this.enqueueIntervals.push(interval)
if (this.enqueueIntervals.length > 5) {
this.enqueueIntervals.splice(0, this.enqueueIntervals.length - 5)