From f9a0e5780df50317faf88e00dafc84b58abd0823 Mon Sep 17 00:00:00 2001 From: WardPearce Date: Sun, 7 Apr 2024 13:43:35 +1200 Subject: [PATCH] Allow sync to be 3 seconds off --- materialious/src/routes/watch/[slug]/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/materialious/src/routes/watch/[slug]/+page.svelte b/materialious/src/routes/watch/[slug]/+page.svelte index cbfaa312..690ebe16 100644 --- a/materialious/src/routes/watch/[slug]/+page.svelte +++ b/materialious/src/routes/watch/[slug]/+page.svelte @@ -58,7 +58,7 @@ } else if (event.type === 'seek' && event.time) { const timeDiff = player.currentTime - event.time; - if (timeDiff > 3 || timeDiff < 3) { + if (timeDiff > 3 || timeDiff < -3) { player.currentTime = event.time; } }