diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-12-30 00:32:32 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-12-30 00:32:32 +1100 |
| commit | 1e8e22305e09f36e4c869889bfd0978faae73140 (patch) | |
| tree | 2637c4534dbb36bea4d0470579a1522ade18a732 /src/components/TimeLine.vue | |
| parent | 0d27e899cf580a90784a7ac929a027c456ef30b0 (diff) | |
Fix small inconsistency between tick and event-line offsets
Diffstat (limited to 'src/components/TimeLine.vue')
| -rw-r--r-- | src/components/TimeLine.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/TimeLine.vue b/src/components/TimeLine.vue index 5e52b9c..5f39dae 100644 --- a/src/components/TimeLine.vue +++ b/src/components/TimeLine.vue @@ -263,7 +263,7 @@ function getMinorTicks(date: HistDate, scaleIdx: number, majorUnitSz: number, ma let idxChg = idx; while (Math.ceil(idxFrac) < numMinorUnits){ date = stepDate(date, SCALES[scaleIdx + 1], {count: idxChg}); - minorTicks.push(new Tick(date, false, majorOffset + idxFrac / numMinorUnits)) + minorTicks.push(new Tick(date, false, majorOffset + idx / numMinorUnits)) idxFrac += stepFrac; idxChg = Math.floor(idxFrac) - idx; idx = Math.floor(idxFrac); |
