From 1e8e22305e09f36e4c869889bfd0978faae73140 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Fri, 30 Dec 2022 00:32:32 +1100
Subject: Fix small inconsistency between tick and event-line offsets

---
 src/components/TimeLine.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/TimeLine.vue')

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);
-- 
cgit v1.2.3

