Skip to content

Commit d28fc4b

Browse files
committed
1.3.4
1 parent 603a64e commit d28fc4b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

dist/danmaku.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
// (rtl mode) the right end of `cr` move out of left side of stage
2222
var crLeftTime = that.duration + cr.time - ct;
2323
var cmtTotalWidth = that.width + cmt.width;
24-
var cmtElapsed = cmtTotalWidth * (ct - cmt.time) * pbr / that.duration;
24+
var cmtTime = that._hasMedia ? cmt.time : cmt._utc;
25+
var cmtElapsed = cmtTotalWidth * (ct - cmtTime) * pbr / that.duration;
26+
// var cmtElapsed = cmtTotalWidth * (ct - cmt.time) * pbr / that.duration;
2527
var cmtArrival = that.width - cmtElapsed;
2628
// (rtl mode) the left end of `cmt` reach the left side of stage
2729
var cmtArrivalTime = that.duration * cmtArrival / (that.width + cmt.width);

0 commit comments

Comments
 (0)