From fc9d0ecafb42434e12c002ca7b41c02e4051889c Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Mon, 13 Apr 2026 20:43:46 -0400 Subject: [PATCH] Improve panel mode exit cleanup When exiting panel mode, now properly resets: - Remove zoom attribute to clear any zoom state - Scroll to top position to reset viewport This ensures a clean state when transitioning back to regular reading mode. --- fixed-layout.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fixed-layout.js b/fixed-layout.js index 7eafc10..817574a 100644 --- a/fixed-layout.js +++ b/fixed-layout.js @@ -529,6 +529,8 @@ export class FixedLayout extends HTMLElement { this.#currentPanels = []; this.#hidePanelOverlay(); this.removeAttribute("panel-mode"); + this.removeAttribute("zoom"); + this.scrollTo(0, 0); this.#render(); }