From 27d65ca7c50a2394874d2837b5f0a6fd9ec8f5b2 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Wed, 9 Jul 2025 22:07:39 +0200 Subject: [PATCH] fix: make timeline zoom faster --- apps/web/src/hooks/use-timeline-zoom.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/hooks/use-timeline-zoom.ts b/apps/web/src/hooks/use-timeline-zoom.ts index b1f7745..ce32c9f 100644 --- a/apps/web/src/hooks/use-timeline-zoom.ts +++ b/apps/web/src/hooks/use-timeline-zoom.ts @@ -21,7 +21,7 @@ export function useTimelineZoom({ // Only zoom if user is using pinch gesture (ctrlKey or metaKey is true) if (e.ctrlKey || e.metaKey) { e.preventDefault(); - const delta = e.deltaY > 0 ? -0.05 : 0.05; + const delta = e.deltaY > 0 ? -0.15 : 0.15; setZoomLevel((prev) => Math.max(0.1, Math.min(10, prev + delta))); } // Otherwise, allow normal scrolling