fix(reader): hide the chrome when a touch selection starts
Release / build-and-push (push) Successful in 2m28s

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.
This commit is contained in:
John O'Keefe
2026-09-15 20:20:34 -04:00
parent 7afad5dcde
commit 27a93ba2ea
+9
View File
@@ -1082,6 +1082,15 @@ document.addEventListener("alpine:init", () => {
clearTimeout(this.tapZoneTimer); clearTimeout(this.tapZoneTimer);
this.tapZoneTimer = null; 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) { attachTapZoneListeners(surface: HTMLElement, isDoc: boolean) {
let downX = 0; let downX = 0;