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