You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-06-27 05:11:11 +02: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:
@ -273,10 +273,12 @@
|
||||
};
|
||||
|
||||
const closeViewer = async () => {
|
||||
$slideshowState = SlideshowState.StopSlideshow;
|
||||
document.body.style.cursor = '';
|
||||
if ($slideshowState === SlideshowState.None) {
|
||||
dispatch('close');
|
||||
await navigate({ targetRoute: 'current', assetId: null });
|
||||
} else {
|
||||
$slideshowState = SlideshowState.StopSlideshow;
|
||||
}
|
||||
};
|
||||
|
||||
const navigateAssetRandom = async () => {
|
||||
|
Reference in New Issue
Block a user