From 56fc47fb9267a3f4528d572cc8e7450a1d0e15bf Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Sun, 5 Feb 2023 18:08:58 +0800 Subject: [PATCH] fix bug (double shift) --- src/App.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.jsx b/src/App.jsx index 74dae65d..a4d8387d 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -446,7 +446,7 @@ const App = memo(() => { const shift = await askForShiftSegments(); if (shift == null) return; const { shiftAmount, shiftValues } = shift; - const clampValue = (val) => Math.min(Math.max(val + shiftAmount, 0), duration); + const clampValue = (val) => Math.min(Math.max(val, 0), duration); const newSegments = apparentCutSegments.map((segment) => { if (!isSegmentSelected(segment)) return segment; const newSegment = { ...segment };