summaryrefslogtreecommitdiff
path: root/apps/web/src/components/editor/timeline
diff options
context:
space:
mode:
authorMathis Boulais <77585805+MathisBls@users.noreply.github.com>2025-08-05 12:57:47 +0200
committerGitHub <noreply@github.com>2025-08-05 12:57:47 +0200
commit9c6556ea05693701450c1977267b761e0fb3488c (patch)
tree015d7d5ce932dcb04c2f251a1393ceb5e36ca0e5 /apps/web/src/components/editor/timeline
parentefbbc48bc5d20b8df3c1fe5feab3f6471263da4e (diff)
downloadopencut-9c6556ea05693701450c1977267b761e0fb3488c.tar.gz
fix: restore horizontal scroll sync after Radix ScrollArea removal (#518)
Diffstat (limited to 'apps/web/src/components/editor/timeline')
-rw-r--r--apps/web/src/components/editor/timeline/index.tsx12
1 files changed, 3 insertions, 9 deletions
diff --git a/apps/web/src/components/editor/timeline/index.tsx b/apps/web/src/components/editor/timeline/index.tsx
index dd81b7b3..bb8dfbc0 100644
--- a/apps/web/src/components/editor/timeline/index.tsx
+++ b/apps/web/src/components/editor/timeline/index.tsx
@@ -513,15 +513,9 @@ export function Timeline() {
// --- Scroll synchronization effect ---
useEffect(() => {
- const rulerViewport = rulerScrollRef.current?.querySelector(
- "[data-radix-scroll-area-viewport]"
- ) as HTMLElement;
- const tracksViewport = tracksScrollRef.current?.querySelector(
- "[data-radix-scroll-area-viewport]"
- ) as HTMLElement;
- const trackLabelsViewport = trackLabelsScrollRef.current?.querySelector(
- "[data-radix-scroll-area-viewport]"
- ) as HTMLElement;
+ const rulerViewport = rulerScrollRef.current;
+ const tracksViewport = tracksScrollRef.current;
+ const trackLabelsViewport = trackLabelsScrollRef.current;
if (!rulerViewport || !tracksViewport) return;