1
0
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:
Steve Heffernan 2010-05-27 10:51:18 -07:00
parent 46a2340aab
commit 0545583730

View File

@ -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();
},