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.
This commit is contained in:
2026-04-13 20:43:46 -04:00
parent bb5017b99b
commit fc9d0ecafb
+2
View File
@@ -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();
}