summaryrefslogtreecommitdiff
path: root/apps/web/src/components/editor
diff options
context:
space:
mode:
authorAndrew Kordampalos <megakor@gmail.com>2025-06-23 22:41:38 +0300
committerAndrew Kordampalos <megakor@gmail.com>2025-06-23 22:41:38 +0300
commitc7f56d61d776f87607fc02e9f71bb4b8e1a49d98 (patch)
tree4fdaba294cf491444a2ecb5d53a2eaba2b9a8e62 /apps/web/src/components/editor
parent267a590d04c89ad0a74b682d8b575197e1a742fc (diff)
downloadopencut-c7f56d61d776f87607fc02e9f71bb4b8e1a49d98.tar.gz
Format
Diffstat (limited to 'apps/web/src/components/editor')
-rw-r--r--apps/web/src/components/editor/timeline.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/web/src/components/editor/timeline.tsx b/apps/web/src/components/editor/timeline.tsx
index e2c212d9..cf6b57e6 100644
--- a/apps/web/src/components/editor/timeline.tsx
+++ b/apps/web/src/components/editor/timeline.tsx
@@ -295,6 +295,7 @@ export function Timeline() {
const clickX = e.clientX - rect.left;
const clickedTime = clickX / (50 * zoomLevel);
const clampedTime = Math.max(0, Math.min(duration, clickedTime));
+
seek(clampedTime);
};