mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:27:09 -05:00 
			
		
		
		
	fix(web): middle click not working on videos (#21304)
Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
		
							parent
							
								
									e2169f5316
								
							
						
					
					
						commit
						a3808c26ce
					
				@ -321,7 +321,7 @@
 | 
				
			|||||||
        onComplete={(errored) => ((loaded = true), (thumbError = errored))}
 | 
					        onComplete={(errored) => ((loaded = true), (thumbError = errored))}
 | 
				
			||||||
      />
 | 
					      />
 | 
				
			||||||
      {#if asset.isVideo}
 | 
					      {#if asset.isVideo}
 | 
				
			||||||
        <div class="absolute top-0 h-full w-full">
 | 
					        <div class="absolute top-0 h-full w-full pointer-events-none">
 | 
				
			||||||
          <VideoThumbnail
 | 
					          <VideoThumbnail
 | 
				
			||||||
            url={getAssetPlaybackUrl({ id: asset.id, cacheKey: asset.thumbhash })}
 | 
					            url={getAssetPlaybackUrl({ id: asset.id, cacheKey: asset.thumbhash })}
 | 
				
			||||||
            enablePlayback={mouseOver && $playVideoThumbnailOnHover}
 | 
					            enablePlayback={mouseOver && $playVideoThumbnailOnHover}
 | 
				
			||||||
@ -331,7 +331,7 @@
 | 
				
			|||||||
          />
 | 
					          />
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
      {:else if asset.isImage && asset.livePhotoVideoId}
 | 
					      {:else if asset.isImage && asset.livePhotoVideoId}
 | 
				
			||||||
        <div class="absolute top-0 h-full w-full">
 | 
					        <div class="absolute top-0 h-full w-full pointer-events-none">
 | 
				
			||||||
          <VideoThumbnail
 | 
					          <VideoThumbnail
 | 
				
			||||||
            url={getAssetPlaybackUrl({ id: asset.livePhotoVideoId, cacheKey: asset.thumbhash })}
 | 
					            url={getAssetPlaybackUrl({ id: asset.livePhotoVideoId, cacheKey: asset.thumbhash })}
 | 
				
			||||||
            enablePlayback={mouseOver && $playVideoThumbnailOnHover}
 | 
					            enablePlayback={mouseOver && $playVideoThumbnailOnHover}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user