Consistent auto hide with slide changes

This commit is contained in:
Manav Rathi
2025-03-06 12:40:16 +05:30
parent c8dc9c9f46
commit ca7ee5e147

View File

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