summaryrefslogtreecommitdiff
path: root/apps/web/src/components/ui
diff options
context:
space:
mode:
authoriza <59828082+izadoesdev@users.noreply.github.com>2025-06-24 08:22:20 +0300
committerGitHub <noreply@github.com>2025-06-24 08:22:20 +0300
commit612d0d8c15a34aefa4995c96523bbf1e9411a6da (patch)
treea0e3c402e2f5ddd4c9b63785878ad73a205a1326 /apps/web/src/components/ui
parentaa6d42c517a3732a9fbd7ddb81de120ba0e4b545 (diff)
parentf0e305cfe6e0f519f9e12246bf0816d246b5fbf7 (diff)
downloadopencut-612d0d8c15a34aefa4995c96523bbf1e9411a6da.tar.gz
Merge pull request #40 from pulkitgarg04/main
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.tsx4
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,