fix: do not display the handles (left/right) on preview mode

This commit is contained in:
Yiannis Christodoulou 2025-06-24 02:34:39 +03:00
parent ccf1ebd54f
commit 1ebfe94953
3 changed files with 28 additions and 24 deletions

View File

@ -1827,6 +1827,7 @@ const TimelineControls = ({
</div>
{/* Resize handles with both mouse and touch support */}
{isPlayingSegments ? null : <>
<div
className="clip-segment-handle left"
title="Resize segment start"
@ -1851,6 +1852,7 @@ const TimelineControls = ({
handleSegmentResize(segment.id, false)(e);
}}
></div>
</>}
</div>
);
});
@ -2373,6 +2375,7 @@ const TimelineControls = ({
</div>
{/* Bottom circle for dragging */}
{isPlayingSegments ? null : (
<div
className={`timeline-marker-drag ${isDragging ? 'dragging' : ''}`}
onMouseDown={startDrag}
@ -2380,6 +2383,7 @@ const TimelineControls = ({
>
<span className="timeline-marker-drag-icon"></span>
</div>
)}
</div>
{/* Trim Line Markers - hidden when segments exist */}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long