mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
fix comment
This commit is contained in:
@@ -83,12 +83,16 @@ export function PropertiesPanel() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (mediaItem?.type === "audio") {
|
if (mediaItem?.type === "audio") {
|
||||||
return <AudioProperties key={elementId} element={element} />;
|
return (
|
||||||
|
<div key={elementId}>
|
||||||
|
<AudioProperties element={element} />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div key={elementId}>
|
<div key={elementId}>
|
||||||
<MediaProperties key={elementId} element={element} />
|
<MediaProperties element={element} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { TIMELINE_CONSTANTS } from "@/constants/timeline-constants";
|
||||||
import { TimelineCanvasRulerProps } from "@/types/timeline";
|
import { TimelineCanvasRulerProps } from "@/types/timeline";
|
||||||
import React, { useRef, useEffect } from "react";
|
import React, { useRef, useEffect } from "react";
|
||||||
|
|
||||||
@@ -19,7 +20,7 @@ export default function TimelineCanvasRuler({
|
|||||||
|
|
||||||
ctx.clearRect(0, 0, width, height);
|
ctx.clearRect(0, 0, width, height);
|
||||||
|
|
||||||
const pixelsPerSecond = 50 * zoomLevel;
|
const pixelsPerSecond = TIMELINE_CONSTANTS.PIXELS_PER_SECOND * zoomLevel;
|
||||||
|
|
||||||
const getTimeInterval = () => {
|
const getTimeInterval = () => {
|
||||||
if (pixelsPerSecond >= 200) return 0.1;
|
if (pixelsPerSecond >= 200) return 0.1;
|
||||||
|
|||||||
Reference in New Issue
Block a user