diff --git a/apps/web/bun.lockb b/apps/web/bun.lockb new file mode 100755 index 0000000..30e5a2f Binary files /dev/null and b/apps/web/bun.lockb differ diff --git a/apps/web/src/components/editor/timeline.tsx b/apps/web/src/components/editor/timeline.tsx index 675b398..83ff590 100644 --- a/apps/web/src/components/editor/timeline.tsx +++ b/apps/web/src/components/editor/timeline.tsx @@ -557,8 +557,26 @@ export function Timeline() { {/* Playhead in ruler */}
{ + e.preventDefault(); + e.stopPropagation(); + const handleMouseMove = (e: MouseEvent) => { + const timeline = timelineRef.current; + if (!timeline) return; + const rect = timeline.getBoundingClientRect(); + const mouseX = Math.max(0, e.clientX - rect.left); + const newTime = mouseX / (50 * zoomLevel); + seek(newTime); + }; + const handleMouseUp = () => { + window.removeEventListener("mousemove", handleMouseMove); + window.removeEventListener("mouseup", handleMouseUp); + }; + window.addEventListener("mousemove", handleMouseMove); + window.addEventListener("mouseup", handleMouseUp); + }} >
@@ -670,7 +688,7 @@ export function Timeline() { {/* Playhead for tracks area */}
); -} \ No newline at end of file +} diff --git a/apps/web/src/components/header.tsx b/apps/web/src/components/header.tsx index 109d022..86ff878 100644 --- a/apps/web/src/components/header.tsx +++ b/apps/web/src/components/header.tsx @@ -23,7 +23,8 @@ export function Header() { GitHub - + {/* */} +