summaryrefslogtreecommitdiff
path: root/apps/web/src/constants
diff options
context:
space:
mode:
authorMaze <167211895+mazeincoding@users.noreply.github.com>2025-07-17 17:22:42 +0200
committerGitHub <noreply@github.com>2025-07-17 17:22:42 +0200
commitb97a30824e3d9758850281aa40e64d074126d1cb (patch)
tree6b3f3e246ee326adf3371861610433bb5c711014 /apps/web/src/constants
parent502725b98ec53b1668ceeae1a9f5463c64cdddf6 (diff)
parentfaf5a121ac271666a92218fc46be92e25c715ee3 (diff)
downloadopencut-b97a30824e3d9758850281aa40e64d074126d1cb.tar.gz
Merge pull request #283 from KhacTuanIT/feature/optimize-timeline-ruler
Optimize timeline performance
Diffstat (limited to 'apps/web/src/constants')
-rw-r--r--apps/web/src/constants/timeline-constants.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/web/src/constants/timeline-constants.ts b/apps/web/src/constants/timeline-constants.ts
index 8c76a2e8..05e44e2f 100644
--- a/apps/web/src/constants/timeline-constants.ts
+++ b/apps/web/src/constants/timeline-constants.ts
@@ -76,6 +76,11 @@ export const TIMELINE_CONSTANTS = {
DEFAULT_TEXT_DURATION: 5,
DEFAULT_IMAGE_DURATION: 5,
ZOOM_LEVELS: [0.25, 0.5, 1, 1.5, 2, 3, 4],
+ ZOOM_LEVEL_MIN: 0.1,
+ ZOOM_LEVEL_MAX: 10,
+ ZOOM_STEP_BASE: 0.15,
+ MAX_ZOOM_STEP: 66,
+ ZOOM_STEP: 1,
} as const;
// FPS presets for project settings