Commit d88f327c by 胡悦

提交

1 parent 4ab02ebe
......@@ -62,13 +62,13 @@ export default {
this.valueWidth = this.text.visualLength(this.fontSize) // 内容文本宽度
const { boxWidth, valueWidth } = this
console.log(valueWidth, boxWidth)
if (valueWidth < boxWidth) {
if (valueWidth - 10 < boxWidth) {
this.$set(this, 'speed', 0)
} else {
this.$set(this, 'speed', this.scrollamount)
}
this.key = new Date().getTime()
console.log(valueWidth > boxWidth, this.speed, this.scrollamount)
console.log(valueWidth - 10 < boxWidth, this.speed, this.scrollamount)
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!