mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:29:32 -05: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 () => {
 | 
					  const closeViewer = async () => {
 | 
				
			||||||
    $slideshowState = SlideshowState.StopSlideshow;
 | 
					    if ($slideshowState === SlideshowState.None) {
 | 
				
			||||||
    document.body.style.cursor = '';
 | 
					      dispatch('close');
 | 
				
			||||||
    dispatch('close');
 | 
					      await navigate({ targetRoute: 'current', assetId: null });
 | 
				
			||||||
    await navigate({ targetRoute: 'current', assetId: null });
 | 
					    } else {
 | 
				
			||||||
 | 
					      $slideshowState = SlideshowState.StopSlideshow;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const navigateAssetRandom = async () => {
 | 
					  const navigateAssetRandom = async () => {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user