Typos
This commit is contained in:
@@ -3,7 +3,7 @@ import {EventArg, useNavigation} from '@react-navigation/core'
|
||||
|
||||
if ('scrollRestoration' in history) {
|
||||
// Tell the brower not to mess with the scroll.
|
||||
// We're doing that manuall below.
|
||||
// We're doing that manually below.
|
||||
history.scrollRestoration = 'manual'
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ export const Pager = React.forwardRef(function PagerImpl(
|
||||
// We want to determine if the tabbar is already "sticking" at the top (in which
|
||||
// case we should preserve and restore scroll), or if it is somewhere below in the
|
||||
// viewport (in which case a scroll jump would be jarring). We determine this by
|
||||
// measuring where the "anchor"" element is (which we place just above the tabbar).
|
||||
// measuring where the "anchor" element is (which we place just above the tabbar).
|
||||
let anchorTop = anchorRef.current
|
||||
? (anchorRef.current as Element).getBoundingClientRect().top
|
||||
: -scrollY // If there's no anchor, treat the top of the page as one.
|
||||
|
||||
Reference in New Issue
Block a user