From 4962f2161fa78cf3ce15a8d72f98356ff43f6df8 Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Sun, 1 Feb 2026 12:44:36 +0100 Subject: [PATCH] refactor(tv): remove auto-scroll behaviors from search and series --- components/search/TVSearchSection.tsx | 5 +---- components/series/TVSeriesPage.tsx | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/components/search/TVSearchSection.tsx b/components/search/TVSearchSection.tsx index d1101892..ec4f8199 100644 --- a/components/search/TVSearchSection.tsx +++ b/components/search/TVSearchSection.tsx @@ -41,11 +41,8 @@ export const TVSearchSection: React.FC = ({ const [focusedCount, setFocusedCount] = useState(0); const prevFocusedCount = useRef(0); - // When section loses all focus, scroll back to start + // Track focus count for section useEffect(() => { - if (prevFocusedCount.current > 0 && focusedCount === 0) { - flatListRef.current?.scrollToOffset({ offset: 0, animated: true }); - } prevFocusedCount.current = focusedCount; }, [focusedCount]); diff --git a/components/series/TVSeriesPage.tsx b/components/series/TVSeriesPage.tsx index ce179c0d..3d904e95 100644 --- a/components/series/TVSeriesPage.tsx +++ b/components/series/TVSeriesPage.tsx @@ -252,11 +252,8 @@ export const TVSeriesPage: React.FC = ({ const [focusedCount, setFocusedCount] = useState(0); const prevFocusedCount = useRef(0); - // Scroll back to start when episode list loses focus + // Track focus count for episode list useEffect(() => { - if (prevFocusedCount.current > 0 && focusedCount === 0) { - episodeListRef.current?.scrollTo({ x: 0, animated: true }); - } prevFocusedCount.current = focusedCount; }, [focusedCount]);