diff --git a/src/lib/hooks/useWebScrollRestoration.ts b/src/lib/hooks/useWebScrollRestoration.ts index 4cb25f20a7..8ded0adcf6 100644 --- a/src/lib/hooks/useWebScrollRestoration.ts +++ b/src/lib/hooks/useWebScrollRestoration.ts @@ -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' } diff --git a/src/view/com/pager/Pager.web.tsx b/src/view/com/pager/Pager.web.tsx index 143a3ecddd..dde799e420 100644 --- a/src/view/com/pager/Pager.web.tsx +++ b/src/view/com/pager/Pager.web.tsx @@ -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.