Draw tails for all notes, not just the selected one
Bug: 274628209
Change-Id: I932c66316346edb68b0222463686a29dfdc09992
diff --git a/ui/src/frontend/track_panel.ts b/ui/src/frontend/track_panel.ts
index 0aecc27..109549e 100644
--- a/ui/src/frontend/track_panel.ts
+++ b/ui/src/frontend/track_panel.ts
@@ -399,19 +399,8 @@
size.height,
`#344596`);
}
- if (globals.state.currentSelection !== null) {
- if (globals.state.currentSelection.kind === 'NOTE') {
- const note = globals.state.notes[globals.state.currentSelection.id];
- if (note.noteType === 'DEFAULT') {
- drawVerticalLineAtTime(
- ctx,
- localState.timeScale,
- note.timestamp,
- size.height,
- note.color);
- }
- }
+ if (globals.state.currentSelection !== null) {
if (globals.state.currentSelection.kind === 'SLICE' &&
globals.sliceDetails.wakeupTs !== undefined) {
drawVerticalLineAtTime(
@@ -442,6 +431,9 @@
size.height,
transparentNoteColor,
1);
+ } else if (note.noteType === 'DEFAULT') {
+ drawVerticalLineAtTime(
+ ctx, localState.timeScale, note.timestamp, size.height, note.color);
}
}
}