mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-13 04:26:16 -08:00
feat(playback): back arrow in watch mode navigates straight to the list
Leaving the theater took two clicks: back to browse, then back to the list. Watch state already shows everything browse offers (episodes, About, extras), so the bar's back arrow is now route-level back (new backClicked output wired to each host's goBack), while Close player and Escape keep exiting to browse without navigating. Replaces PORTALS.BACK_TO_BROWSE with a generic top-level BACK key (all locales). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
46975c5260
commit
d4f6a8b1f7
27 files changed
+47
-27
No files matched your search
@@ -112,9 +112,12 @@ Contracts:
|
||||
- Escape closes inline playback: the shell emits `closePlayerRequested`
|
||||
when playback is active, the event was not `defaultPrevented`, and no
|
||||
element is in browser fullscreen; hosts wire it to `closeInlinePlayer()`.
|
||||
- The inline player's now-playing bar has a back button that emits the
|
||||
existing `closed` output — in watch state, back returns to browse, it
|
||||
does not navigate the route.
|
||||
- The now-playing bar separates two exits: the back arrow emits
|
||||
`backClicked`, which hosts wire to their route-level `goBack()` (straight
|
||||
back to the list — everything browse offers is also visible in watch, so
|
||||
a two-step unwind would be ceremony); the "Close player" button and
|
||||
Escape emit `closed`/`closePlayerRequested` and return to browse without
|
||||
navigating.
|
||||
- Entering watch scrolls the shell to the top; leaving keeps the scroll
|
||||
position.
|
||||
|
||||
|
||||
Reference in new issue
Block a user