From 1505c1b12f516c65b6a3d076f0e9623a294031d6 Mon Sep 17 00:00:00 2001 From: Simon Orzel Date: Thu, 17 Jul 2025 02:53:25 +0200 Subject: feat: timeline changes --- .../editor/timeline/timeline-playhead.tsx | 48 ++++++++++++++-------- 1 file changed, 30 insertions(+), 18 deletions(-) (limited to 'apps/web/src/components/editor/timeline/timeline-playhead.tsx') diff --git a/apps/web/src/components/editor/timeline/timeline-playhead.tsx b/apps/web/src/components/editor/timeline/timeline-playhead.tsx index a4d035f6..9cd1429c 100644 --- a/apps/web/src/components/editor/timeline/timeline-playhead.tsx +++ b/apps/web/src/components/editor/timeline/timeline-playhead.tsx @@ -59,27 +59,39 @@ export function TimelinePlayhead({ const leftPosition = playheadPosition * TIMELINE_CONSTANTS.PIXELS_PER_SECOND * zoomLevel; return ( -
- {/* The playhead line spanning full height */} + <> + {/* Playhead line container */}
+ ref={playheadRef} + className="absolute pointer-events-auto z-[95]" + style={{ + left: `${trackLabelsWidth + leftPosition}px`, + top: 0, + bottom: 0, + width: "2px", // Slightly wider for better click target + }} + onMouseDown={handlePlayheadMouseDown} + > + {/* The playhead line spanning full height */} +
+
- {/* Playhead dot indicator at the top (in ruler area) */} + {/* Playhead dot indicator - separate container with highest z-index */}
-
+ className="absolute pointer-events-none z-[100]" + style={{ + left: `${trackLabelsWidth + leftPosition}px`, + top: 0, + bottom: 0, + }} + > +
+
+ ); } -- cgit v1.3.1