diff options
| author | Maze Winther <mazewinther@gmail.com> | 2025-07-26 12:34:57 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2025-07-26 12:34:57 +0200 |
| commit | 043bf7d70abb705059bed5c0dbcc8007448750ec (patch) | |
| tree | 5059c2b968e55e39ed324a42dae3edf6f4df6d60 /apps/web/src/components/editor/timeline/index.tsx | |
| parent | 317ee9141ed7cb04128600344ca751a42f780817 (diff) | |
| download | opencut-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.tsx | 7 |
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> |
