Skip to content

Commit

Permalink
Avoid double click zoom in whn clicking track label, fixes #4559
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Nov 27, 2024
1 parent 755bfd7 commit 03d52c6
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,14 @@ const TrackLabel = observer(
].sort((a, b) => (b?.priority || 0) - (a?.priority || 0))

return (
<Paper ref={ref} className={cx(className, classes.root)}>
<Paper
ref={ref}
className={cx(className, classes.root)}
onClick={event => {
// avoid clicks on track label from turning into double-click zoom
event.stopPropagation()
}}
>
<TrackLabelDragHandle track={track} trackId={trackId} view={view} />
<IconButton
onClick={() => view.hideTrack(trackId)}
Expand Down

0 comments on commit 03d52c6

Please sign in to comment.