This commit is contained in:
Manav Rathi 2025-02-19 08:32:33 +05:30
parent b14ad92b91
commit 38a31b7492
No known key found for this signature in database

View File

@ -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";