fix bug (double shift)

pull/1457/head
Mikael Finstad 4 years ago
parent 2f754d2a03
commit 56fc47fb92
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -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 };

Loading…
Cancel
Save