We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 603a64e commit d28fc4bCopy full SHA for d28fc4b
dist/danmaku.js
@@ -21,7 +21,9 @@
21
// (rtl mode) the right end of `cr` move out of left side of stage
22
var crLeftTime = that.duration + cr.time - ct;
23
var cmtTotalWidth = that.width + cmt.width;
24
- var cmtElapsed = cmtTotalWidth * (ct - cmt.time) * pbr / that.duration;
+ 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;
27
var cmtArrival = that.width - cmtElapsed;
28
// (rtl mode) the left end of `cmt` reach the left side of stage
29
var cmtArrivalTime = that.duration * cmtArrival / (that.width + cmt.width);
0 commit comments