summaryrefslogtreecommitdiff
path: root/apps/web/src/components/editor/snap-indicator.tsx
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2025-08-05 14:07:05 +0200
committerMaze Winther <mazewinther@gmail.com>2025-08-05 14:07:05 +0200
commit4f6d0142866653507fabf34644a238be44951b30 (patch)
treeb85a6fbd9800866d34f782f46691320d75267015 /apps/web/src/components/editor/snap-indicator.tsx
parentb83e6bedb7ff5de5a1c13b7e159bb6e094ba5398 (diff)
downloadopencut-4f6d0142866653507fabf34644a238be44951b30.tar.gz
fix: remaining timeline issues with targeting wrong radix ui scroll element
Diffstat (limited to 'apps/web/src/components/editor/snap-indicator.tsx')
-rw-r--r--apps/web/src/components/editor/snap-indicator.tsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/web/src/components/editor/snap-indicator.tsx b/apps/web/src/components/editor/snap-indicator.tsx
index 0a51e107..ac884b71 100644
--- a/apps/web/src/components/editor/snap-indicator.tsx
+++ b/apps/web/src/components/editor/snap-indicator.tsx
@@ -28,9 +28,7 @@ export function SnapIndicator({
// Track scroll position to lock snap indicator to frame
useEffect(() => {
- const tracksViewport = tracksScrollRef.current?.querySelector(
- "[data-radix-scroll-area-viewport]"
- ) as HTMLElement;
+ const tracksViewport = tracksScrollRef.current;
if (!tracksViewport) return;