8000 fix(triage): stop bar ruler from marking the boundary bar as primary by johannboehme · Pull Request #57 · johannboehme/tk-1 · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion frontend/src/components/triage/TriageTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,10 @@ function usePerChunkBarTicks(
if (showBeats) kind = "beat";
}
if (kind) {
const extension = t < startS || t > endS;
// Half-open chunk span: the downbeat sitting exactly on endS opens
// the *next* bar (e.g. bar 5 of a 4-bar chunk), so it belongs to the
// extension, not the primary grid.
const extension = t < startS - 1e-9 || t > endS - 1e-9;
ticks.push({ tS: t, kind, barIndex, extension });
}
}
Expand Down
Loading
0