Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Double tap home button to animate to start of home gallery

ashilknc2374ed14e44
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
index fb9c5f9387..c96989942a 100644
--- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
+++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
@@ -185,9 +185,10 @@ class GalleryState extends State<Gallery> {
// todo: Assign ID to Gallery and fire generic event with ID &
// target index/date
if (mounted && event.selectedIndex == 0) {
- await _itemScroller.scrollTo(
- index: 0,
- duration: const Duration(milliseconds: 150),
+ await _scrollController.animateTo(
+ 0,
+ duration: const Duration(milliseconds: 250),
+ curve: Curves.easeOutExpo,
);
}
});