From 97c77027f22033ffbcef67a5941c007ea74de381 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Fri, 16 Jun 2023 00:15:13 +0200 Subject: [PATCH] Scroll to top when changing source manga content type (#365) --- src/screens/SourceMangas.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/screens/SourceMangas.tsx b/src/screens/SourceMangas.tsx index 5b8aa83d..59c207be 100644 --- a/src/screens/SourceMangas.tsx +++ b/src/screens/SourceMangas.tsx @@ -286,6 +286,10 @@ export default function SourceMangas() { ); }, [t, source]); + useEffect(() => { + window.scrollTo(0, 0); + }, [contentType]); + return (