From f688c7ef5d8b4b97a74162d97508092901311379 Mon Sep 17 00:00:00 2001 From: Hyteq Date: Mon, 23 Jun 2025 09:35:32 +0300 Subject: fix: video player properly reflecting the edited timeline, video start --- apps/web/src/components/editor/timeline.tsx | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) (limited to 'apps/web/src/components/editor/timeline.tsx') diff --git a/apps/web/src/components/editor/timeline.tsx b/apps/web/src/components/editor/timeline.tsx index ed9128dc..be532991 100644 --- a/apps/web/src/components/editor/timeline.tsx +++ b/apps/web/src/components/editor/timeline.tsx @@ -259,19 +259,6 @@ export function Timeline() { > {/* Timeline Header */}
- {/* Playhead */} - {duration > 0 && ( -
-
-
- )} - {/* Zoom indicator */}
{zoomLevel.toFixed(1)}x @@ -301,14 +288,15 @@ export function Timeline() { )} {/* Playhead for tracks area */} - {tracks.length > 0 && duration > 0 && ( + {tracks.length > 0 && (
+ > +
+
)}
@@ -321,6 +309,7 @@ function TimelineTrackComponent({ track, zoomLevel }: { track: TimelineTrack, zo const { mediaItems } = useMediaStore(); const { moveClipToTrack, updateClipTrim, updateClipStartTime } = useTimelineStore(); const [isDropping, setIsDropping] = useState(false); + const [dropPosition, setDropPosition] = useState(null); const [resizing, setResizing] = useState<{ clipId: string; side: 'left' | 'right'; -- cgit v1.3.1