summaryrefslogtreecommitdiff
path: root/apps/web/src/components/editor/timeline-canvas
diff options
context:
space:
mode:
authorgantiro <gantiro396@gmail.com>2025-07-15 23:26:56 +0700
committergantiro <gantiro396@gmail.com>2025-07-15 23:26:56 +0700
commit8bfc91e62ed74d843428cd8a386778e6e7a13db4 (patch)
treef5c48e8692e843042bb5afd3865fc9474b521874 /apps/web/src/components/editor/timeline-canvas
parent5fc06257f26e68185042e4214b368f6658956ab6 (diff)
downloadopencut-8bfc91e62ed74d843428cd8a386778e6e7a13db4.tar.gz
fix comment
Diffstat (limited to 'apps/web/src/components/editor/timeline-canvas')
-rw-r--r--apps/web/src/components/editor/timeline-canvas/timeline-canvas-ruler.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/web/src/components/editor/timeline-canvas/timeline-canvas-ruler.tsx b/apps/web/src/components/editor/timeline-canvas/timeline-canvas-ruler.tsx
index d004c465..c40cdbda 100644
--- a/apps/web/src/components/editor/timeline-canvas/timeline-canvas-ruler.tsx
+++ b/apps/web/src/components/editor/timeline-canvas/timeline-canvas-ruler.tsx
@@ -1,3 +1,4 @@
+import { TIMELINE_CONSTANTS } from "@/constants/timeline-constants";
import { TimelineCanvasRulerProps } from "@/types/timeline";
import React, { useRef, useEffect } from "react";
@@ -19,7 +20,7 @@ export default function TimelineCanvasRuler({
ctx.clearRect(0, 0, width, height);
- const pixelsPerSecond = 50 * zoomLevel;
+ const pixelsPerSecond = TIMELINE_CONSTANTS.PIXELS_PER_SECOND * zoomLevel;
const getTimeInterval = () => {
if (pixelsPerSecond >= 200) return 0.1;