Fix profile label section soft reset scroll (#9103)
* Fix profile label section scrollto * revert back to headerHeight
This commit is contained in:
@@ -48,11 +48,9 @@ export function ProfileLabelsSection({
|
|||||||
const t = useTheme()
|
const t = useTheme()
|
||||||
|
|
||||||
const onScrollToTop = useCallback(() => {
|
const onScrollToTop = useCallback(() => {
|
||||||
// @ts-expect-error TODO fix this
|
scrollElRef.current?.scrollToOffset({
|
||||||
scrollElRef.current?.scrollTo({
|
|
||||||
animated: isNative,
|
animated: isNative,
|
||||||
x: 0,
|
offset: -headerHeight,
|
||||||
y: -headerHeight,
|
|
||||||
})
|
})
|
||||||
}, [scrollElRef, headerHeight])
|
}, [scrollElRef, headerHeight])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user