summaryrefslogtreecommitdiff
path: root/apps/web/src/constants
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2026-02-02 19:46:51 +0100
committerMaze Winther <mazewinther@gmail.com>2026-02-02 19:46:51 +0100
commitad794fa43b472942f58af6d42dcecb1d358c5929 (patch)
treebc326b533a788ea600a0e6aefc17807738a752b5 /apps/web/src/constants
parent7d5914353b8f78652f12b880fcd16c5ab82b3769 (diff)
parent9ca32e5e39d3a1a7eaf6086f9f0d14e10e03afbd (diff)
downloadopencut-ad794fa43b472942f58af6d42dcecb1d358c5929.tar.gz
Merge branch 'timeline-zoom'
Diffstat (limited to 'apps/web/src/constants')
-rw-r--r--apps/web/src/constants/timeline-constants.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/web/src/constants/timeline-constants.tsx b/apps/web/src/constants/timeline-constants.tsx
index 692ccd65..d6af3c3a 100644
--- a/apps/web/src/constants/timeline-constants.tsx
+++ b/apps/web/src/constants/timeline-constants.tsx
@@ -35,12 +35,11 @@ export const TRACK_GAP = 4;
export const TIMELINE_CONSTANTS = {
PIXELS_PER_SECOND: 50,
DEFAULT_ELEMENT_DURATION: 5,
- PLAYHEAD_LOOKAHEAD_SECONDS: 30, // padding ahead
PADDING_TOP_PX: 0,
- ZOOM_LEVELS: [0.1, 0.25, 0.5, 1, 1.5, 2, 3, 4, 6, 8, 10, 15, 20, 30, 50],
ZOOM_MIN: 0.1,
ZOOM_MAX: 100,
- ZOOM_STEP: 0.1,
+ ZOOM_BUTTON_FACTOR: 1.7,
+ ZOOM_ANCHOR_PLAYHEAD_THRESHOLD: 0.15,
} as const;
export const DEFAULT_TIMELINE_VIEW_STATE: TTimelineViewState = {