fix(NoticeBar): failed to replay

This commit is contained in:
chenjiahan
2020-06-19 20:20:22 +08:00
parent 5b2f13311c
commit e8bd24265d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -60,11 +60,11 @@ export default createComponent({
this.offset = this.wrapWidth;
this.duration = 0;
doubleRaf(() => {
setTimeout(() => {
this.offset = -this.contentWidth;
this.duration = (this.contentWidth + this.wrapWidth) / this.speed;
this.$emit('replay');
});
}, 100);
},
reset() {