mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -04: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
@ -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…
x
Reference in New Issue
Block a user