mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(web): stop slideshow when pressing escape from asset viewer (#9929)
* fix(web): stop slideshow when pressing escape from asset viewer * Fix formatting
This commit is contained in:
parent
01f52c9021
commit
203cbbbfdb
1 changed files with 6 additions and 4 deletions
|
|
@ -273,10 +273,12 @@
|
|||
};
|
||||
|
||||
const closeViewer = async () => {
|
||||
$slideshowState = SlideshowState.StopSlideshow;
|
||||
document.body.style.cursor = '';
|
||||
dispatch('close');
|
||||
await navigate({ targetRoute: 'current', assetId: null });
|
||||
if ($slideshowState === SlideshowState.None) {
|
||||
dispatch('close');
|
||||
await navigate({ targetRoute: 'current', assetId: null });
|
||||
} else {
|
||||
$slideshowState = SlideshowState.StopSlideshow;
|
||||
}
|
||||
};
|
||||
|
||||
const navigateAssetRandom = async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue