diff options
| author | Pulkit Garg <pulkitgargbnl@gmail.com> | 2025-06-24 10:28:58 +0530 |
|---|---|---|
| committer | Pulkit Garg <pulkitgargbnl@gmail.com> | 2025-06-24 10:28:58 +0530 |
| commit | e664ea0271a9c34bb7290447823367ba6fffac7d (patch) | |
| tree | ecbf5d1840edf21d661183f6ecba53ac55d73ad2 /apps/web/src/components/ui | |
| parent | 4260d4be08817393af96e7843ed828183137119f (diff) | |
| download | opencut-e664ea0271a9c34bb7290447823367ba6fffac7d.tar.gz | |
feat: Enable Playhead Dragging for Video Navigation
Diffstat (limited to 'apps/web/src/components/ui')
| -rw-r--r-- | apps/web/src/components/ui/video-player.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/web/src/components/ui/video-player.tsx b/apps/web/src/components/ui/video-player.tsx index 8731e1a8..fdc2ed02 100644 --- a/apps/web/src/components/ui/video-player.tsx +++ b/apps/web/src/components/ui/video-player.tsx @@ -42,7 +42,7 @@ export function VideoPlayer({ if (!video) return; const handleSeekEvent = (e: CustomEvent) => { - if (!isInClipRange) return; + // Always update video time, even if outside clip range const timelineTime = e.detail.time; const newVideoTime = Math.max(trimStart, Math.min( clipDuration - trimEnd, @@ -52,7 +52,7 @@ export function VideoPlayer({ }; const handleUpdateEvent = (e: CustomEvent) => { - if (!isInClipRange) return; + // Always update video time, even if outside clip range const timelineTime = e.detail.time; const targetVideoTime = Math.max(trimStart, Math.min( clipDuration - trimEnd, |
