From 03d52c6e717514bf279e0301370dc25c992a46a6 Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 26 Nov 2024 21:38:13 -0500 Subject: [PATCH] Avoid double click zoom in whn clicking track label, fixes #4559 --- .../src/LinearGenomeView/components/TrackLabel.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/linear-genome-view/src/LinearGenomeView/components/TrackLabel.tsx b/plugins/linear-genome-view/src/LinearGenomeView/components/TrackLabel.tsx index 5f88a92336..ddda367891 100644 --- a/plugins/linear-genome-view/src/LinearGenomeView/components/TrackLabel.tsx +++ b/plugins/linear-genome-view/src/LinearGenomeView/components/TrackLabel.tsx @@ -113,7 +113,14 @@ const TrackLabel = observer( ].sort((a, b) => (b?.priority || 0) - (a?.priority || 0)) return ( - + { + // avoid clicks on track label from turning into double-click zoom + event.stopPropagation() + }} + > view.hideTrack(trackId)}