From 9bea450803cbc33b78d8e9960c2bcb1b7bde7572 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 10 Oct 2025 21:56:23 +0300 Subject: [PATCH] Fix profile label section soft reset scroll (#9103) * Fix profile label section scrollto * revert back to headerHeight --- src/screens/Profile/Sections/Labels.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/screens/Profile/Sections/Labels.tsx b/src/screens/Profile/Sections/Labels.tsx index 120fb8225b..2171a5400e 100644 --- a/src/screens/Profile/Sections/Labels.tsx +++ b/src/screens/Profile/Sections/Labels.tsx @@ -48,11 +48,9 @@ export function ProfileLabelsSection({ const t = useTheme() const onScrollToTop = useCallback(() => { - // @ts-expect-error TODO fix this - scrollElRef.current?.scrollTo({ + scrollElRef.current?.scrollToOffset({ animated: isNative, - x: 0, - y: -headerHeight, + offset: -headerHeight, }) }, [scrollElRef, headerHeight])