summaryrefslogtreecommitdiff
path: root/apps/web/src/components/editor/timeline/index.tsx
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2025-07-26 12:34:57 +0200
committerMaze Winther <mazewinther@gmail.com>2025-07-26 12:34:57 +0200
commit043bf7d70abb705059bed5c0dbcc8007448750ec (patch)
tree5059c2b968e55e39ed324a42dae3edf6f4df6d60 /apps/web/src/components/editor/timeline/index.tsx
parent317ee9141ed7cb04128600344ca751a42f780817 (diff)
downloadopencut-043bf7d70abb705059bed5c0dbcc8007448750ec.tar.gz
fix: ensure clicking context menu item doesn't move timeline playhead
Diffstat (limited to 'apps/web/src/components/editor/timeline/index.tsx')
-rw-r--r--apps/web/src/components/editor/timeline/index.tsx7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/web/src/components/editor/timeline/index.tsx b/apps/web/src/components/editor/timeline/index.tsx
index 0368e452..bcaece89 100644
--- a/apps/web/src/components/editor/timeline/index.tsx
+++ b/apps/web/src/components/editor/timeline/index.tsx
@@ -746,11 +746,14 @@ export function Timeline() {
</ContextMenuTrigger>
<ContextMenuContent className="z-[200]">
<ContextMenuItem
- onClick={() => toggleTrackMute(track.id)}
+ onClick={(e) => {
+ e.stopPropagation();
+ toggleTrackMute(track.id);
+ }}
>
{track.muted ? "Unmute Track" : "Mute Track"}
</ContextMenuItem>
- <ContextMenuItem>
+ <ContextMenuItem onClick={(e) => e.stopPropagation()}>
Track settings (soon)
</ContextMenuItem>
</ContextMenuContent>