From 27a93ba2ea8f9753e891658ce8ffa95682c2fded Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Tue, 15 Sep 2026 20:20:34 -0400 Subject: [PATCH] fix(reader): hide the chrome when a touch selection starts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pokeChrome's anySelection gate only prevents the chrome from being raised — if it was already visible when the selection began, it stayed up. noteSelectionActivity now actively hides it the moment a selection appears. --- web/src/reader/reader.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/web/src/reader/reader.ts b/web/src/reader/reader.ts index 68b0284..6be8972 100644 --- a/web/src/reader/reader.ts +++ b/web/src/reader/reader.ts @@ -1082,6 +1082,15 @@ document.addEventListener("alpine:init", () => { clearTimeout(this.tapZoneTimer); this.tapZoneTimer = null; } + // Hide the chrome the moment a selection appears — it competes + // with the selection popover and handles for screen space. + if (hasSelection && this.chromeVisible) { + this.chromeVisible = false; + if (this.hideTimer) { + clearTimeout(this.hideTimer); + this.hideTimer = null; + } + } }, attachTapZoneListeners(surface: HTMLElement, isDoc: boolean) { let downX = 0;