feat: Detached pages and fix navigation actions

This commit is contained in:
Aleksi Lassila
2024-03-31 12:43:48 +03:00
parent 5b18c95766
commit b5b96bf3e5
14 changed files with 143 additions and 66 deletions

View File

@@ -21,7 +21,7 @@
function onPrevious() {
if (index === 0) {
Selectable.focusLeft();
return false;
} else {
index = (index - 1 + length) % length;
}
@@ -41,7 +41,7 @@
navigationActions={{
right: onNext,
left: onPrevious,
up: () => Selectable.focusLeft() || true
up: () => Selectable.giveFocus('left') || true
}}
/>
<div class="flex flex-1 z-10 p-4">