Skip to content

Commit

Permalink
Fixed overlap of time labels for large duration (#1049)
Browse files Browse the repository at this point in the history
Time labels overlaps occur if the duration of audio is more than a few hours.
  • Loading branch information
meefik authored and katspaugh committed Mar 19, 2017
1 parent 6eaa4e7 commit 6b4ae81
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 @@ -191,7 +191,7 @@ WaveSurfer.Timeline = {
var primaryLabelInterval = 4;
var secondaryLabelInterval = 2;
} else {
var timeInterval = 60;
var timeInterval = Math.ceil(0.5 / pixelsPerSecond) * 60;
var primaryLabelInterval = 4;
var secondaryLabelInterval = 2;
}
Expand Down

0 comments on commit 6b4ae81

Please sign in to comment.