summaryrefslogtreecommitdiff
path: root/apps/web/src/hooks
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2025-07-09 22:07:39 +0200
committerMaze Winther <mazewinther@gmail.com>2025-07-09 22:07:39 +0200
commit27d65ca7c50a2394874d2837b5f0a6fd9ec8f5b2 (patch)
tree7ab3ff04c2acda1cac19072b29daefc356863f51 /apps/web/src/hooks
parent53d6d0e1afe05b678cf97bbb277be8af335a8a97 (diff)
downloadopencut-27d65ca7c50a2394874d2837b5f0a6fd9ec8f5b2.tar.gz
fix: make timeline zoom faster
Diffstat (limited to 'apps/web/src/hooks')
-rw-r--r--apps/web/src/hooks/use-timeline-zoom.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/web/src/hooks/use-timeline-zoom.ts b/apps/web/src/hooks/use-timeline-zoom.ts
index b1f77456..ce32c9f0 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