Skip to content

The swiss army knife of lossless video/audio editing

clamp comfort zoom

Mikael Finstada47c65cbdb4d
diff --git a/src/App.jsx b/src/App.jsx
index bb75405a..80a9eb08 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -332,7 +332,7 @@ const App = memo(() => {
const zoomRel = useCallback((rel) => setZoom(z => Math.min(Math.max(z + rel, 1), zoomMax)), []);
const frameRenderEnabled = !!(rotationPreviewRequested || dummyVideoPath);
- const comfortZoom = duration ? (duration / 100) : undefined;
+ const comfortZoom = duration ? Math.max(duration / 100, 1) : undefined;
const toggleComfortZoom = useCallback(() => {
if (!comfortZoom) return;