Skip to content

armgit / ente

Public Imported from GitHub
0

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

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.dart
index 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 significant
final 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();
}