Skip to content

Commit

Permalink
Update the minimal maxZoom from 1 to 2.
Browse files Browse the repository at this point in the history
This way there is always something to zoom into even with very small videos.

Signed-off-by: Arnei <[email protected]>
  • Loading branch information
Marcus authored and Arnei committed Jun 18, 2024
1 parent ef1e696 commit ed6fda8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redux/videoSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ const ZOOM_SECONDS_VISIBLE = 20 * 1000;
function timelineZoomMax(state) {
const maxZoom = state.duration / ZOOM_SECONDS_VISIBLE;

return Math.max(1, Math.ceil(maxZoom));
return Math.max(2, Math.ceil(maxZoom));
}

export const {
Expand Down

0 comments on commit ed6fda8

Please sign in to comment.