Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update scroll to top check (#1404)

Leendert de Borstbdc907447d7d
diff --git a/apps/mobile-app/app/(tabs)/items/index.tsx b/apps/mobile-app/app/(tabs)/items/index.tsx
index 19bdec191..ff4e459f8 100644
--- a/apps/mobile-app/app/(tabs)/items/index.tsx
+++ b/apps/mobile-app/app/(tabs)/items/index.tsx
@@ -231,8 +231,8 @@ export default function ItemsScreen(): React.ReactNode {
});
const tabPressSub = emitter.addListener('tabPress', (routeName: string) => {
- if (routeName === 'credentials' && isTabFocused) {
- setRefreshing(false);
+ if (routeName === 'items' && isTabFocused) {
+ flatListRef.current?.scrollToOffset({ offset: 0, animated: true });
}
});