diff --git a/materialious/src/lib/components/ItemsList.svelte b/materialious/src/lib/components/ItemsList.svelte index afce526e..15fb6f89 100644 --- a/materialious/src/lib/components/ItemsList.svelte +++ b/materialious/src/lib/components/ItemsList.svelte @@ -71,7 +71,6 @@ } function setupAndroidTVNavigation() { - console.log('gridElement', gridElement); if (!$isAndroidTvStore || !gridElement) return; focusableItems = Array.from( @@ -117,6 +116,11 @@ switch (direction) { case 'left': + if (currentFocusIndex % columns === 0) { + lastFocusIndex = currentFocusIndex; + updateTabIndex(currentFocusIndex); + return true; + } newIndex = Math.max(0, currentFocusIndex - 1); break; case 'right': @@ -128,7 +132,6 @@ // Store current position before leaving and ensure it stays focusable lastFocusIndex = currentFocusIndex; updateTabIndex(currentFocusIndex); - // Allow the event to bubble up to parent navigation return true; } newIndex = Math.max(0, currentFocusIndex - columns); @@ -218,7 +221,6 @@
-
{#each items as item, index} diff --git a/materialious/src/lib/components/Settings/Settings.svelte b/materialious/src/lib/components/Settings/Settings.svelte index 0a087b6c..2c4192ed 100644 --- a/materialious/src/lib/components/Settings/Settings.svelte +++ b/materialious/src/lib/components/Settings/Settings.svelte @@ -84,7 +84,7 @@ -