Skip to content

armgit / ente

Public Imported from GitHub
0

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

Prevent mobile scroll gestures from selecting photos

Anand Baburajan1cb44bcd7f09
diff --git a/web/apps/photos/src/components/FileList.tsx b/web/apps/photos/src/components/FileList.tsx
index 116f4a6327..dd1f5745b2 100644
--- a/web/apps/photos/src/components/FileList.tsx
+++ b/web/apps/photos/src/components/FileList.tsx
@@ -1223,7 +1223,9 @@ const FileThumbnail: React.FC<FileThumbnailProps> = ({
onMouseUp: () => setIsLongPressing(false),
onMouseLeave: () => setIsLongPressing(false),
onTouchStart: () => setIsLongPressing(true),
+ onTouchMove: () => setIsLongPressing(false),
onTouchEnd: () => setIsLongPressing(false),
+ onTouchCancel: () => setIsLongPressing(false),
}),
[],
);