Skip to content

Commit

Permalink
Round to Milliseconds (#1087)
Browse files Browse the repository at this point in the history
timeline plugin: Round to milliseconds
  • Loading branch information
X-Raym authored and thijstriemstra committed May 14, 2017
1 parent 0066f2c commit 23b54a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/wavesurfer.timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ WaveSurfer.Timeline = {
seconds = (seconds < 10) ? '0' + seconds : seconds;
return '' + minutes + ':' + seconds;
} else {
return seconds;
return Math.round(seconds * 1000) / 1000;
}
};

Expand Down

0 comments on commit 23b54a1

Please sign in to comment.