Skip to content

armgit / ente

Public Imported from GitHub
0

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

zoom and click improvements

Manav Rathi9496baaffc15
diff --git a/web/packages/new/photos/components/FileViewerPhotoSwipe.ts b/web/packages/new/photos/components/FileViewerPhotoSwipe.ts
index 891d5a56d1..52ad7c8463 100644
--- a/web/packages/new/photos/components/FileViewerPhotoSwipe.ts
+++ b/web/packages/new/photos/components/FileViewerPhotoSwipe.ts
@@ -143,6 +143,14 @@ export class FileViewerPhotoSwipe {
// be zoomed into further (this is common when just the thumbnail
// has been loaded).
clickToCloseNonZoomable: false,
+ // Disable closing on background taps otherwise accidental closes
+ // are irritatingly easy.
+ bgClickAction: () => {
+ /* nop */
+ },
+ // The default (ctrl + zoom) is cumbersome, allow zooming just by
+ // using the wheel / trackpad zoom gesture.
+ wheelToZoom: true,
// Set the index within files that we should open to. Subsequent
// updates to the index will be tracked by PhotoSwipe internally.
index: initialIndex,