Fix pager scroll restoration
This commit is contained in:
+1
-4
@@ -521,10 +521,7 @@ function RoutesContainer({children}: React.PropsWithChildren<{}>) {
|
||||
// TODO: Clean up?
|
||||
navigationRef.current?.addListener('__unsafe_action__', e => {
|
||||
if (webFocusedScreen) {
|
||||
webScrollPositions.set(
|
||||
webFocusedScreen,
|
||||
Math.round(window.scrollY),
|
||||
)
|
||||
webScrollPositions.set(webFocusedScreen, window.scrollY)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user