better seek

This commit is contained in:
j 2024-02-17 15:55:41 +00:00
parent 9cde17ed87
commit 67d5aecd97

View file

@ -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
}