time -> timer

This commit is contained in:
DIYgod
2018-06-13 22:43:17 +08:00
parent 18150e310b
commit d30fa4e176
5 changed files with 35 additions and 32 deletions
+2 -2
View File
@@ -89,11 +89,11 @@ class Controller {
percentage = Math.min(percentage, 1);
this.player.bar.set('played', percentage, 'width');
this.player.seek(this.player.bar.get('played') * this.player.video.duration);
this.player.time.enable('progress');
this.player.timer.enable('progress');
};
this.player.template.playedBarWrap.addEventListener(utils.nameMap.dragStart, () => {
this.player.time.disable('progress');
this.player.timer.disable('progress');
document.addEventListener(utils.nameMap.dragMove, thumbMove);
document.addEventListener(utils.nameMap.dragEnd, thumbUp);
});