From 7dc4a3a6f3d0f558ab9eb32aa9e7e03be2d9480d Mon Sep 17 00:00:00 2001 From: justusmattern27 Date: Sun, 22 Sep 2024 14:27:53 +0200 Subject: [PATCH] fix: higher audio playback discrepancy tolerance --- packages/2d/src/lib/components/Audio.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/2d/src/lib/components/Audio.ts b/packages/2d/src/lib/components/Audio.ts index fe325fcb0..e9d839706 100644 --- a/packages/2d/src/lib/components/Audio.ts +++ b/packages/2d/src/lib/components/Audio.ts @@ -105,7 +105,7 @@ export class Audio extends Media { audio.pause(); } } - if (Math.abs(audio.currentTime - time) > 0.3) { + if (Math.abs(audio.currentTime - time) > 1) { this.setCurrentTime(time); } else if (!playing) { audio.currentTime = time;