Update
This commit is contained in:
@@ -70,7 +70,7 @@ const VideoEditor = ({ width, height }) => {
|
||||
});
|
||||
};
|
||||
|
||||
// NEW: Handle element transformations (position, scale, rotation)
|
||||
// Handle element transformations (position, scale, rotation) and text properties
|
||||
const handleElementUpdate = useCallback(
|
||||
(elementId, updates) => {
|
||||
setTimelineElements((prev) =>
|
||||
@@ -553,7 +553,7 @@ const VideoEditor = ({ width, height }) => {
|
||||
handleSeek={handleSeek}
|
||||
copyFFmpegCommand={copyFFmpegCommand}
|
||||
exportVideo={exportVideo}
|
||||
onElementUpdate={handleElementUpdate} // NEW: Pass the update handler
|
||||
onElementUpdate={handleElementUpdate}
|
||||
layerRef={layerRef}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user