fix(nav): a sub-view step closes the overlays standing over it first

Leaving the Plex player while one of its layers was up (the info panel when
the film ended, the countdown under the back arrow) landed as a user Back:
the overlay listener spent it closing the top layer and the player stayed.
useHistorySubview's open/back now go through closeOverlaysThenNavigate,
like setPage. The RECLOSE comment no longer cites the shared Plex entry.
This commit is contained in:
2026-10-08 01:16:30 +02:00
parent d1704a5519
commit 7f17f488ab
3 changed files with 52 additions and 14 deletions
+3 -3
View File
@@ -177,9 +177,9 @@ describe("closeOverlaysThenNavigate", () => {
}
});
// An overlay's Back callback is a Back STEP: the Plex player keeps its panels on one entry and peels
// one per call. Called once, the entry stayed and the navigation was dropped 1.5 s later — `i`, `d`,
// Shift+W in the player closed the info panel and nothing else.
// An overlay's Back callback is a Back STEP, and the contract lets one entry hold several. When the
// Plex player kept its panels on one entry, a single call left the entry up and the navigation was
// dropped 1.5 s later — `i`, `d`, Shift+W in the player closed the info panel and nothing else.
it("asks again, a render apart, when one call peels only a step off the overlay", async () => {
const back = stubBack();
try {