Skip to content

armgit / ente

Public Imported from GitHub
0

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

Handle case where pointer is dragged downwards after first selection in gallery

ashilkn5587e3ef3995
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
index 0f5ab47ab2..c7c6bbb0a1 100644
--- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
+++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
@@ -597,6 +597,12 @@ class GalleryState extends State<Gallery> {
_checkAndUpdateSwipeStatus();
}
}
+ // To handle case where pointer is dragged downwards after first selection in gallery
+ else if (widget.selectedFiles != null &&
+ widget.selectedFiles!.files.isNotEmpty &&
+ widget.selectedFiles!.files.length == 1) {
+ _checkAndUpdateSwipeStatus();
+ }
},
onPointerUp: (_) {
// End swipe selection when pointer is released