From 96d8e8413c066effc316d8b8e6393d1b0b6b2b1c Mon Sep 17 00:00:00 2001 From: Alexandr Date: Sun, 3 Apr 2016 23:06:00 +0300 Subject: [PATCH] more precise more precise progress bar --- progressor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/progressor.js b/progressor.js index 63875e2..4504be1 100644 --- a/progressor.js +++ b/progressor.js @@ -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 + "%";