Removed logic for automatically scrolling to correct video on non

android tv devices
This commit is contained in:
WardPearce
2025-11-07 16:43:04 +13:00
parent 7626f2295b
commit 44bcf3198d
2 changed files with 1 additions and 20 deletions
@@ -162,14 +162,6 @@
}
onMount(async () => {
if ($feedLastItemId && !$isAndroidTvStore) {
document
.getElementById($feedLastItemId)
?.scrollIntoView({ behavior: 'instant', block: 'center', inline: 'nearest' });
feedLastItemId.set(undefined);
}
if ($isAndroidTvStore) {
await tick();
// Setup Android TV navigation
@@ -1,8 +1,7 @@
<script lang="ts">
import { getSearch, type SearchOptions } from '$lib/api';
import PageLoading from '$lib/components/PageLoading.svelte';
import { feedLastItemId, searchCacheStore } from '$lib/store';
import { onMount } from 'svelte';
import { searchCacheStore } from '$lib/store';
import { _ } from '$lib/i18n';
import InfiniteLoading, { type InfiniteEvent } from 'svelte-infinite-loading';
import ItemsList from '$lib/components/ItemsList.svelte';
@@ -63,16 +62,6 @@
}
]);
onMount(() => {
if ($feedLastItemId) {
document
.getElementById($feedLastItemId)
?.scrollIntoView({ behavior: 'instant', block: 'center', inline: 'nearest' });
feedLastItemId.set(undefined);
}
});
async function updateSearch() {
data.searchStoreId = JSON.stringify(searchOptions) + data.slug;
searchCacheStore.set({ [data.searchStoreId]: await getSearch(data.slug, searchOptions) });