) => {
- // Prevent interaction if segments are playing
- if (isPlayingSegments) return;
+ // Remove the check that prevents interaction during preview mode
+ // This allows users to click and jump in the timeline while previewing
if (!timelineRef.current || !scrollContainerRef.current) return;
@@ -1243,8 +1268,8 @@ const TimelineControls = ({
// Handle segment resize - works with both mouse and touch events
const handleSegmentResize = (segmentId: number, isLeft: boolean) => (e: React.MouseEvent | React.TouchEvent) => {
- // Prevent interaction if segments are playing
- if (isPlayingSegments) return;
+ // Remove the check that prevents interaction during preview mode
+ // This allows users to resize segments while previewing
e.preventDefault();
e.stopPropagation(); // Prevent triggering parent's events
@@ -1579,8 +1604,8 @@ const TimelineControls = ({
// Handle segment click to show the tooltip
const handleSegmentClick = (segmentId: number) => (e: React.MouseEvent) => {
- // Prevent interaction if segments are playing
- if (isPlayingSegments) return;
+ // Remove the check that prevents interaction during preview mode
+ // This allows users to click segments while previewing
// Don't show tooltip if clicked on handle
if ((e.target as HTMLElement).classList.contains('clip-segment-handle')) {
@@ -2679,72 +2704,70 @@ const TimelineControls = ({
{/* Second row with action buttons similar to segment tooltip */}
{/* New segment button - Moved to first position */}
- {availableSegmentDuration >= 0.5 && (
-
{/* Go to start button - play from beginning of cutaway (until next segment) */}