better seek
This commit is contained in:
parent
9cde17ed87
commit
67d5aecd97
1 changed files with 3 additions and 0 deletions
|
@ -335,6 +335,9 @@ window.VideoPlayer = function(options) {
|
|||
progress = that.querySelector('.controls .position .progress')
|
||||
that.querySelector('.controls .position').addEventListener("click", event => {
|
||||
var bar = event.target
|
||||
if (bar && bar.classList.contains('position')) {
|
||||
bar = bar.querySelector('.bar')
|
||||
}
|
||||
while (bar && !bar.classList.contains('bar')) {
|
||||
bar = bar.parentElement
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue