This commit is contained in:
j 2025-03-01 10:22:55 +01:00
parent 9c544ca46a
commit 58244bcd60

View file

@ -364,7 +364,7 @@ window.VideoPlayer = function(options) {
that.querySelector('.controls .position input').addEventListener('input', event => {
event.preventDefault()
event.stopPropagation()
const value = Math.min(100, Math.max(0, parseFloat(event.target.value))
const value = Math.min(100, Math.max(0, parseFloat(event.target.value)))
setProgressPosition(value)
var position = value/100 * self.options.duration
displayTime(position)