diff --git a/src/main/ffmpeg.ts b/src/main/ffmpeg.ts index 8723dbeb..8f9ab4cb 100644 --- a/src/main/ffmpeg.ts +++ b/src/main/ffmpeg.ts @@ -141,7 +141,10 @@ function runFfmpegProcess(args: readonly string[], customExecaOptions?: ExecaOpt } export async function runFfmpegConcat({ ffmpegArgs, concatTxt, totalDuration, onProgress }: { - ffmpegArgs: string[], concatTxt: string, totalDuration: number, onProgress: (a: number) => void + ffmpegArgs: string[], + concatTxt: string, + totalDuration: number, + onProgress: (a: number) => void, }) { const process = runFfmpegProcess(ffmpegArgs); diff --git a/src/renderer/src/hooks/useTimelineScroll.ts b/src/renderer/src/hooks/useTimelineScroll.ts index 58df6ef7..94a239d0 100644 --- a/src/renderer/src/hooks/useTimelineScroll.ts +++ b/src/renderer/src/hooks/useTimelineScroll.ts @@ -42,7 +42,8 @@ function useTimelineScroll({ wheelSensitivity, mouseWheelZoomModifierKey, mouseW const makeUnit = (v: number) => ((direction * v) > 0 ? 1 : -1); if (wheelEvent[keyMap[mouseWheelZoomModifierKey]]) { - zoomRel(direction * pixelY * wheelSensitivity * 0.4); + // negative because https://github.com/mifi/lossless-cut/issues/2703 + zoomRel(-direction * pixelY * wheelSensitivity * 0.4); } else if (wheelEvent[keyMap[mouseWheelFrameSeekModifierKey]]) { shortStep(makeUnit(pixelX + pixelY)); } else if (wheelEvent[keyMap[mouseWheelKeyframeSeekModifierKey]]) {