mirror of
https://github.com/aleksilassila/reiverr.git
synced 2026-04-18 23:53:19 +02:00
feat: Detached pages and fix navigation actions
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user