)
This commit is contained in:
parent
9c544ca46a
commit
58244bcd60
1 changed files with 1 additions and 1 deletions
|
|
@ -364,7 +364,7 @@ window.VideoPlayer = function(options) {
|
||||||
that.querySelector('.controls .position input').addEventListener('input', event => {
|
that.querySelector('.controls .position input').addEventListener('input', event => {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
event.stopPropagation()
|
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)
|
setProgressPosition(value)
|
||||||
var position = value/100 * self.options.duration
|
var position = value/100 * self.options.duration
|
||||||
displayTime(position)
|
displayTime(position)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue