Skip to content

armgit / ente

Public Imported from GitHub
0

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

Consistent auto hide with slide changes

Manav Rathica7ee5e147e3
diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.ts
index 29aac6a470..96487b0854 100644
--- a/web/packages/gallery/components/viewer/photoswipe.ts
+++ b/web/packages/gallery/components/viewer/photoswipe.ts
@@ -741,6 +741,11 @@ export class FileViewerPhotoSwipe {
slide.panTo(slide.pan.x, slide.pan.y);
};
+ const handleToggleUIControls = () => {
+ toggleUIControls();
+ lastActivityDate = new Date();
+ }
+
// Some actions routed via the delegate
const handleDelete = () => delegate.performKeyAction("delete");
@@ -803,7 +808,7 @@ export class FileViewerPhotoSwipe {
cb = panner(lkey);
break;
case "h":
- cb = toggleUIControls;
+ cb = handleToggleUIControls;
break;
case "l":
cb = handleToggleFavoriteIfEnabled;