Skip to content

Commit

Permalink
fix 缩放弹幕冲突
Browse files Browse the repository at this point in the history
  • Loading branch information
haocity committed Feb 27, 2018
1 parent 83f5386 commit e030703
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/tdplayer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ class Tplayer {
dm.className = "danmaku tp-left"
dm.style.transform = "translateX(-" + this.width / this.config.danmakusize + "px)"
this.ele.danmaku_warp.appendChild(dm)
let twidth=dm.offsetWidth;
let twidth=dm.offsetWidth*this.config.danmakusize;
let time = this.width / 100
let v = ( twidth + this.width) / time
let dmtop = this.getlefttop(v, twidth)
Expand Down

0 comments on commit e030703

Please sign in to comment.