From 05455837304a4c3b371a16930cdb31b267d08c2b Mon Sep 17 00:00:00 2001 From: Steve Heffernan Date: Thu, 27 May 2010 10:51:18 -0700 Subject: [PATCH] Fixed a issue with updating the progress bar when the controls are hidden. Thanks to Justin Greer. --- video.js | 1 + 1 file changed, 1 insertion(+) diff --git a/video.js b/video.js index 9073b32a9..b92e76a35 100644 --- a/video.js +++ b/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(); },