Skip to content

armgit / ente

Public Imported from GitHub
0

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

5s

Manav Rathi38a31b749232
diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.ts
index 94ce2ed68c..85d9b21fdc 100644
--- a/web/packages/gallery/components/viewer/photoswipe.ts
+++ b/web/packages/gallery/components/viewer/photoswipe.ts
@@ -400,7 +400,7 @@ export class FileViewerPhotoSwipe {
private autoHideIfInactive() {
if (this.lastActivityDate == "already-hidden") return;
if (this.lastActivityDate == "auto-hidden") return;
- if (Date.now() - this.lastActivityDate.getTime() > 3000) {
+ if (Date.now() - this.lastActivityDate.getTime() > 5000 /* 5s */) {
if (this.areUIControlsVisible()) {
this.hideUIControlsIfNotFocused();
this.lastActivityDate = "auto-hidden";