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 mspae committed Aug 19, 2017
1 parent b234a61 commit 6de8dcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default class TimelinePlugin {
} else if (pxPerSec * 15 >= 25) {
return 15;
}
return 60;
return Math.ceil(0.5 / pxPerSec) * 60;
},
primaryLabelInterval(pxPerSec) {
if (pxPerSec >= 25) {
Expand Down

0 comments on commit 6de8dcc

Please sign in to comment.