fix: allow real-time playhead on ruler and cursor change
This commit is contained in:
@ -901,10 +901,11 @@ export function Timeline() {
|
|||||||
<ScrollArea className="w-full" ref={rulerScrollRef}>
|
<ScrollArea className="w-full" ref={rulerScrollRef}>
|
||||||
<div
|
<div
|
||||||
ref={rulerRef}
|
ref={rulerRef}
|
||||||
className="relative h-4 select-none cursor-pointer"
|
className="relative h-4 select-none cursor-default"
|
||||||
style={{
|
style={{
|
||||||
width: `${dynamicTimelineWidth}px`,
|
width: `${dynamicTimelineWidth}px`,
|
||||||
}}
|
}}
|
||||||
|
onMouseDown={handleRulerMouseDown}
|
||||||
>
|
>
|
||||||
{/* Time markers */}
|
{/* Time markers */}
|
||||||
{(() => {
|
{(() => {
|
||||||
|
Reference in New Issue
Block a user