Fix scroll position not being saved when navigating without scrolling

This commit is contained in:
AdamArstall committed 2026-03-28 21:10:21 +00:00
1 parent 46943be4e1
commit fafd547311
1 file changed
+2 -1
+2 -1
View File
@@ -4148,7 +4148,8 @@
// Save scroll position of the view we're leaving
if (prevView !== navState.activeView || prevItemId !== navState.activeItemId) {
saveScrollPosition(prevView, globalScrollTop, prevItemId);
const scrollTopToSave = activeScrollTarget?.scrollTop ?? globalScrollTop
saveScrollPosition(prevView, scrollTopToSave, prevItemId);
}
activeView = navState.activeView;