fix comment
This commit is contained in:
parent
5fc06257f2
commit
8bfc91e62e
|
|
@ -83,12 +83,16 @@ export function PropertiesPanel() {
|
|||
);
|
||||
|
||||
if (mediaItem?.type === "audio") {
|
||||
return <AudioProperties key={elementId} element={element} />;
|
||||
return (
|
||||
<div key={elementId}>
|
||||
<AudioProperties element={element} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div key={elementId}>
|
||||
<MediaProperties key={elementId} element={element} />
|
||||
<MediaProperties element={element} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue