Fix profile label section soft reset scroll (#9103)

* Fix profile label section scrollto

* revert back to headerHeight
This commit is contained in:
Samuel Newman
2025-10-10 21:56:23 +03:00
committed by GitHub
parent fb5d56422a
commit 9bea450803
+2 -4
View File
@@ -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])