Skip to content

Commit

Permalink
Merge pull request #7 from Alexufo/master
Browse files Browse the repository at this point in the history
more precise progress bar
  • Loading branch information
ejb committed Apr 4, 2016
2 parents e49b151 + 96d8e84 commit a1af00f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion progressor.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Progressor.prototype.updateProgress = function() {
this.updateTimeCount();
var value = 0;
if (this._media.currentTime > 0) {
value = Math.floor((100 / this._media.duration) * this._media.currentTime);
value =(100 / this._media.duration) * this._media.currentTime;
}
// this._bar.getElementsByTagName('div')[0].clientWidth = value + "%";
this._bar.getElementsByTagName('div')[0].style.width = value + "%";
Expand Down

0 comments on commit a1af00f

Please sign in to comment.