Skip to content

armgit / ente

Public Imported from GitHub
0

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

Set

Manav Rathi18ee3b19f7b4
diff --git a/web/packages/new/photos/components/FileViewerPhotoSwipe.ts b/web/packages/new/photos/components/FileViewerPhotoSwipe.ts
index 278259509e..496b0db7f8 100644
--- a/web/packages/new/photos/components/FileViewerPhotoSwipe.ts
+++ b/web/packages/new/photos/components/FileViewerPhotoSwipe.ts
@@ -158,6 +158,10 @@ export class FileViewerPhotoSwipe {
const pswp = new PhotoSwipe({
// Opaque background.
bgOpacity: 1,
+ // The default, "zoom", cannot be used since we're not animating
+ // from a thumbnail, so effectively "fade" is in effect anyway. Set
+ // it still, just for and explicitness and documentation.
+ showHideAnimationType: "fade",
// The default imageClickAction is "zoom-or-close". When the image
// is small and cannot be zoomed into further (which is common when
// just the thumbnail has been loaded), this causes PhotoSwipe to