diff options
| author | Andrew Kordampalos <megakor@gmail.com> | 2025-06-23 22:41:38 +0300 |
|---|---|---|
| committer | Andrew Kordampalos <megakor@gmail.com> | 2025-06-23 22:41:38 +0300 |
| commit | c7f56d61d776f87607fc02e9f71bb4b8e1a49d98 (patch) | |
| tree | 4fdaba294cf491444a2ecb5d53a2eaba2b9a8e62 /apps/web/src/components/editor | |
| parent | 267a590d04c89ad0a74b682d8b575197e1a742fc (diff) | |
| download | opencut-c7f56d61d776f87607fc02e9f71bb4b8e1a49d98.tar.gz | |
Format
Diffstat (limited to 'apps/web/src/components/editor')
| -rw-r--r-- | apps/web/src/components/editor/timeline.tsx | 1 |
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);
};
|
