diff options
| author | Pinapelz <yukais@pinapelz.com> | 2026-04-16 17:59:16 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-04-16 17:59:16 -0700 |
| commit | c67744e3e5a7079a994cbd0ff196a7269a57ee5a (patch) | |
| tree | 406afbf6630ce204dba0d5597e6f03feb6538d51 | |
| parent | 9576645999ef28ffc7845d2a7d7dfd665a8a0e7e (diff) | |
fix: remove debug media scrubbing code (oops)
| -rw-r--r-- | src/app/game/page.tsx | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/app/game/page.tsx b/src/app/game/page.tsx index 6b6984a..95e590a 100644 --- a/src/app/game/page.tsx +++ b/src/app/game/page.tsx @@ -447,17 +447,6 @@ function GameInner() { useEffect(() => { if (phase !== "playing") return; const handler = (e: KeyboardEvent) => { - if (e.key === "ArrowLeft" || e.key === "ArrowRight") { - const audio = audioRef.current; - if (!audio) return; - e.preventDefault(); - const direction = e.key === "ArrowRight" ? 1 : -1; - const seekSeconds = 5; - const target = audio.currentTime + direction * seekSeconds; - const duration = Number.isFinite(audio.duration) ? audio.duration : target; - audio.currentTime = Math.min(Math.max(0, target), duration); - return; - } if (e.key.length === 1) { e.preventDefault(); handleKeyPress(e.key); |
