Fix minGap in ticks
parent
ac75f52ca4
commit
caa0f9dba2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -206,7 +206,7 @@ export default {
|
||||||
// Do another pass to figure out which timeline points are visible
|
// Do another pass to figure out which timeline points are visible
|
||||||
// This is not as bad as it looks, it's actually 12*O(n)
|
// This is not as bad as it looks, it's actually 12*O(n)
|
||||||
// because there are only 12 months in a year
|
// because there are only 12 months in a year
|
||||||
const minGap = parseFloat(getComputedStyle(this.$refs.cursorSt).fontSize) + this.isMobile ? 5 : 2;
|
const minGap = parseFloat(getComputedStyle(this.$refs.cursorSt).fontSize) + (this.isMobile ? 5 : 2);
|
||||||
let prevShow = -9999;
|
let prevShow = -9999;
|
||||||
for (const [idx, tick] of this.timelineTicks.entries()) {
|
for (const [idx, tick] of this.timelineTicks.entries()) {
|
||||||
// You can't see these anyway, why bother?
|
// You can't see these anyway, why bother?
|
||||||
|
|
Loading…
Reference in New Issue