Skip to content

Commit

Permalink
fix(xgplayer/control/replay.js): fix replay button style bug in IE 11
Browse files Browse the repository at this point in the history
52
  • Loading branch information
zhangxin92 committed Aug 17, 2018
1 parent bb8079e commit 7a8d4b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/xgplayer/browser/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/xgplayer/dist/index.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions packages/xgplayer/src/control/replay.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ let replay = function () {
`, {}, 'xgplayer-replay'); let root = player.root
let btn = container.querySelector('.xgplayer-replay-svg')
root.appendChild(container)

player.on('ended', function () {
container.querySelector('.xgplayer-replay-txt').textContent = player.lang.REPLAY
let path = container.querySelector('path')
let transform = window.getComputedStyle(path).getPropertyValue('transform')
path.setAttribute('transform', transform)
if (!player.config.loop) {
util.addClass(root, 'replay')
}
Expand Down

0 comments on commit 7a8d4b7

Please sign in to comment.