summaryrefslogtreecommitdiff
path: root/apps/web
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2025-07-11 00:48:17 +0200
committerMaze Winther <mazewinther@gmail.com>2025-07-11 00:48:17 +0200
commit4880e3b10c2032fb33ebf9258e6a6f3b46c3f6f0 (patch)
tree0cf0cbb273fe8b993a30ef4f0b7867167fe0c279 /apps/web
parent3a241d91120c61fd671073d99d6099f026f7bdec (diff)
downloadopencut-4880e3b10c2032fb33ebf9258e6a6f3b46c3f6f0.tar.gz
fix: allow real-time playhead on ruler and cursor change
Diffstat (limited to 'apps/web')
-rw-r--r--apps/web/src/components/editor/timeline.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/web/src/components/editor/timeline.tsx b/apps/web/src/components/editor/timeline.tsx
index e302ac1a..fb4723d6 100644
--- a/apps/web/src/components/editor/timeline.tsx
+++ b/apps/web/src/components/editor/timeline.tsx
@@ -901,10 +901,11 @@ export function Timeline() {
<ScrollArea className="w-full" ref={rulerScrollRef}>
<div
ref={rulerRef}
- className="relative h-4 select-none cursor-pointer"
+ className="relative h-4 select-none cursor-default"
style={{
width: `${dynamicTimelineWidth}px`,
}}
+ onMouseDown={handleRulerMouseDown}
>
{/* Time markers */}
{(() => {