Skip to content

armgit / ente

Public Imported from GitHub
0

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

Prevent back swipe while Space photo is zoomed

Anand Baburajanabbb7965ec45
diff --git a/web/apps/space/src/components/SpaceFileViewer.tsx b/web/apps/space/src/components/SpaceFileViewer.tsx
index 08abd561d9..719f3b8c78 100644
--- a/web/apps/space/src/components/SpaceFileViewer.tsx
+++ b/web/apps/space/src/components/SpaceFileViewer.tsx
@@ -881,6 +881,7 @@ export const SpaceFileViewer: React.FC<SpaceFileViewerProps> = ({
) {
return;
}
+ if (deltaX < 0 && pswp?.currSlide?.isPannable()) return;
const swipeAction =
deltaX < 0