From d6052ebe91ae1e46d2890a6979c1bd4305b46d1f Mon Sep 17 00:00:00 2001 From: R-J Lim Date: Sun, 25 Feb 2024 11:07:23 +0900 Subject: [PATCH] Overlay offset buttons should also be disabled during recording --- extension/src/ui/components/MobileVideoOverlay.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/src/ui/components/MobileVideoOverlay.tsx b/extension/src/ui/components/MobileVideoOverlay.tsx index 30b79af4..b9bce8ff 100644 --- a/extension/src/ui/components/MobileVideoOverlay.tsx +++ b/extension/src/ui/components/MobileVideoOverlay.tsx @@ -166,8 +166,8 @@ const MobileVideoOverlay = () => { return null; } - const offsetToPreviousButtonDisabled = model.previousSubtitleTimestamp === undefined; - const offsetToNextButtonDisabled = model.nextSubtitleTimestamp === undefined; + const offsetToPreviousButtonDisabled = model.previousSubtitleTimestamp === undefined || model.recording; + const offsetToNextButtonDisabled = model.nextSubtitleTimestamp === undefined || model.recording; const miningButtonDisabled = (!model.emptySubtitleTrack && !model.subtitleDisplaying) || model.recording; function miningButtonTooltip(model: MobileOverlayModel) {