mirror of
https://github.com/videojs/video.js.git
synced 2025-01-10 23:30:03 +02:00
Fixed a issue with updating the progress bar when the controls are hidden. Thanks to Justin Greer.
This commit is contained in:
parent
46a2340aab
commit
0545583730
1
video.js
1
video.js
@ -315,6 +315,7 @@ var VideoJS = Class.extend({
|
||||
|
||||
// Ajust the play progress bar's width based on the current play time
|
||||
updatePlayProgress: function(){
|
||||
if (this.controls.style.display == 'none') return;
|
||||
this.playProgress.style.width = ((this.video.currentTime / this.video.duration) * (this.progressHolder.offsetWidth - 2)) + "px";
|
||||
this.updateTimeDisplay();
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user