Browse Source

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

Alex 2 years ago
parent
commit
137b2ffdd0
1 changed files with 4 additions and 0 deletions
  1. 4 0
      web/src/lib/components/shared-components/immich-thumbnail.svelte

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

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