From 27b28a6d96b4742182f4cb96841e6b52c1110712 Mon Sep 17 00:00:00 2001 From: qtchaos <72168435+qtchaos@users.noreply.github.com> Date: Thu, 28 Dec 2023 22:18:47 +0200 Subject: [PATCH] Remove seeking with numbers. --- src/components/player/internals/KeyboardEvents.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/components/player/internals/KeyboardEvents.tsx b/src/components/player/internals/KeyboardEvents.tsx index 29432a4f..6373b0b5 100644 --- a/src/components/player/internals/KeyboardEvents.tsx +++ b/src/components/player/internals/KeyboardEvents.tsx @@ -113,14 +113,6 @@ export function KeyboardEvents() { dataRef.current.display?.setTime(dataRef.current.time + 1); if (k === "," && dataRef.current.mediaPlaying?.isPaused) dataRef.current.display?.setTime(dataRef.current.time - 1); - if (/\d/.exec(k) && !dataRef.current.isSeeking) { - const num = parseInt(k, 10); - if (num === 0) dataRef.current.display?.setTime(0); - const percent = num / 10; - dataRef.current.display?.setTime( - dataRef.current.mediaProgress.duration * percent, - ); - } // Utils if (k === "f") dataRef.current.display?.toggleFullscreen();