Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

clear the reveal-on-select flag on the tap path so an arrow walk that hit the end of the list can't make the next tap read layout

[._.]/ Adam Eivyf0d3232811f5
diff --git a/client/src/components/songbook/DrumSheetView.jsx b/client/src/components/songbook/DrumSheetView.jsx
index e6a87f48ad..7a7625c6d7 100644
--- a/client/src/components/songbook/DrumSheetView.jsx
+++ b/client/src/components/songbook/DrumSheetView.jsx
@@ -343,6 +343,11 @@ function DrumSheetView({
const within = rel - (bar - 1) * span;
// `uy < GRID_TOP` floors negative → no piece; `within >= barW` is the gap
// between bars. Either way there's nothing under the finger.
+ // A tap's note is on screen by definition, and an arrow walk that ended on
+ // the last hit leaves its flag set (React bails out of the no-op state write,
+ // so the reveal effect never ran to clear it) — clear it here rather than let
+ // it fire a pointless layout read on the next tap.
+ revealRef.current = false;
if (!piece || bar < 1 || bar > barCount || within < 0 || within >= barW) { setSelection(null); return; }
const cells = cellsFor(bar, piece);
const step = Math.floor(within / CELL);