scalable thumb

This commit is contained in:
DIYgod
2018-03-08 22:44:35 +08:00
parent a31d911948
commit dedc1bf62d
3 changed files with 13 additions and 13 deletions
-7
View File
@@ -58,13 +58,6 @@ class Controller {
}
});
this.player.template.thumb.addEventListener('mouseover', () => {
this.player.template.thumb.style.background = this.player.options.theme;
});
this.player.template.thumb.addEventListener('mouseout', () => {
this.player.template.thumb.style.background = '#fff';
});
const thumbMove = (event) => {
const e = event || window.event;
let percentage = (e.clientX - utils.getElementViewLeft(this.player.template.barWrap)) / barWidth;