π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Only set swipe status to true if gesture is more of a horizontal gesture
ashilkn08b55147b219
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dartindex 0be75e59d2..0f5ab47ab2 100644--- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart+++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart@@ -589,10 +589,10 @@ class GalleryState extends State<Gallery> {if (!_swipeActiveNotifier.value &&widget.selectedFiles != null &&widget.selectedFiles!.files.isNotEmpty) {- // Check if movement is primarily horizontal (2x more than vertical)+ // Check if movement is primarily horizontal (2x more than vertical) and if delta x is significantfinal dx = event.delta.dx.abs();final dy = event.delta.dy.abs();- if (dx > dy * 2) {+ if (dx > dy * 2 && dx > 0.1) {// Horizontal swipe detected, check if swipe helper is active_checkAndUpdateSwipeStatus();}