Skip to content

Commit

Permalink
fix: allow subclone deselection when clicking outside the svg element
Browse files Browse the repository at this point in the history
  • Loading branch information
tuner committed Jan 10, 2025
1 parent 8b40662 commit cfb7c2d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/gui/gui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,13 @@ export function setupGui(
zoomController.updateDisplay();
});

jellyfishPlotContainer.addEventListener("click", (event: MouseEvent) => {
// Allow deselection when clicking outside the plot
if (event.target === jellyfishPlotContainer) {
querySvg()?.dispatchEvent(new MouseEvent("click", event));
}
});

onZoomOrPan();
onPatientChange();
}
Expand Down

0 comments on commit cfb7c2d

Please sign in to comment.