This commit is contained in:
ct
2025-07-18 01:15:14 +08:00
parent cde2928694
commit 4775d77063
2 changed files with 15 additions and 3 deletions

View File

@@ -119,6 +119,10 @@ const VideoPreview = ({
elementRefs,
);
const handleResetClick = () => {
emitter.emit('video-reset');
};
// Enhanced stage click handler that also clears guide lines
const handleStageClick = (e) => {
baseHandleStageClick(e);
@@ -281,6 +285,7 @@ const VideoPreview = ({
id="open-text-editor"
className="h-16 w-16 rounded-full shadow-xl"
onClick={() => {
handleResetClick();
handleElementSelect(element.id);
onOpenTextSidebar();
}}