Keep the timeline's ruler and playhead dot in view while its rows scroll

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Olive Vaughn 2026-09-30 01:22:01 -04:00
parent c139e4d747
commit 277c0c3b63
2 changed files with 28 additions and 9 deletions

View file

@ -355,9 +355,7 @@
(reset! over nil)
(when (< 1 (count from))
(rf/dispatch [::ui/move-node from []]))))}
[:div {:style {:height "var(--ruler)"
:border-bottom "1px solid var(--line)"
:background "var(--chrome)"}}]
[:div.tl-corner]
(doall (for [row visible]
^{:key (str (:path row))} [label-cell row selection over]))]
[:div.tl-tracks
@ -401,7 +399,8 @@
:on-pointer-cancel (fn [_] (reset! scrubbing false))}
(doall
(for [f (range 0 frames step)]
^{:key f} [:div.tick {:style {:left (edge% f frames)}} f]))]
^{:key f} [:div.tick {:style {:left (edge% f frames)}} f]))
[:div.tl-knob {:style {:left (at% frame frames)}}]]
(if (seq visible)
(doall (for [row visible]
^{:key (str (:path row))} [track-cell row frames sliding]))