Browse Source

fix(web) video keep playing when mouse is not over video (#885)

Alex 2 years ago
parent
commit
137b2ffdd0

+ 4 - 0
web/src/lib/components/shared-components/immich-thumbnail.svelte

@@ -87,6 +87,10 @@
 
 
 		isThumbnailVideoPlaying = false;
 		isThumbnailVideoPlaying = false;
 		videoProgress = '00:00';
 		videoProgress = '00:00';
+
+		if (videoPlayerNode) {
+			videoPlayerNode.pause();
+		}
 	};
 	};
 
 
 	const handleCanPlay = (ev: Event) => {
 	const handleCanPlay = (ev: Event) => {