π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mobile][photos] Enable vertical swipe selection after long press
ashilkncb03d4b0c827
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/component/gallery_file_widget.dart b/mobile/apps/photos/lib/ui/viewer/gallery/component/gallery_file_widget.dartindex 9ba161735a..3463573bb5 100644--- a/mobile/apps/photos/lib/ui/viewer/gallery/component/gallery_file_widget.dart+++ b/mobile/apps/photos/lib/ui/viewer/gallery/component/gallery_file_widget.dart@@ -121,6 +121,8 @@ class _GalleryFileWidgetState extends State<GalleryFileWidget> {onHover: (event) {_isPointerInside = true;// Handle the initial file selection when swipe becomes active+ // This is mainly for horizontal swipe detection since vertical after long press+ // is already handled by swipeHelper being activeif (swipeActiveNotifier?.value == true &&swipeHelper != null &&!swipeHelper.isActive &&@@ -132,8 +134,10 @@ class _GalleryFileWidgetState extends State<GalleryFileWidget> {},onEnter: (event) {_isPointerInside = true;- // Check if horizontal swipe is active before starting or updating selection- if (swipeActiveNotifier?.value == true && swipeHelper != null) {+ // Check if swipe is active (either from horizontal swipe or from long press)+ if ((swipeActiveNotifier?.value == true ||+ swipeHelper?.isActive == true) &&+ swipeHelper != null) {if (!swipeHelper.isActive) {// Start selection when first entering a file during active swipeswipeHelper.startSelection(widget.file);