From 23b54a15fe73462963522c5bdc777e4d7328698a Mon Sep 17 00:00:00 2001 From: Raymond Radet Date: Sun, 14 May 2017 04:32:49 +0200 Subject: [PATCH] Round to Milliseconds (#1087) timeline plugin: Round to milliseconds --- plugin/wavesurfer.timeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/wavesurfer.timeline.js b/plugin/wavesurfer.timeline.js index 475758611..507e25b7a 100644 --- a/plugin/wavesurfer.timeline.js +++ b/plugin/wavesurfer.timeline.js @@ -174,7 +174,7 @@ WaveSurfer.Timeline = { seconds = (seconds < 10) ? '0' + seconds : seconds; return '' + minutes + ':' + seconds; } else { - return seconds; + return Math.round(seconds * 1000) / 1000; } };