From f88468adddfaabaf490d578f4df64d16d9885b66 Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Tue, 16 Jan 2024 14:45:07 -0500 Subject: [PATCH] chore(client): more extensive click event logging --- client/src/components/ManhattanPlot.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/components/ManhattanPlot.js b/client/src/components/ManhattanPlot.js index 32136865..72866205 100644 --- a/client/src/components/ManhattanPlot.js +++ b/client/src/components/ManhattanPlot.js @@ -256,7 +256,10 @@ const ManhattanPlot = React.memo( Array.from(u.root.querySelectorAll(".u-cursor-pt")).forEach((pt) => { // Should be only one u-cursor-pt, so don't do any series index logic pt.addEventListener("click", (e) => { - console.info("Manhattan plot u-cursor-pt received click event:", e); + console.info( + "Manhattan plot u-cursor-pt received click event:", e, + "hoveredItem.current", hoveredItem.current, + "u.cursor.drag.x", u.cursor.drag.x); if (onPointClick && e.button === 0 && hoveredItem.current && !u.cursor.drag.x) { onPointClick(dataNoNulls[hoveredItem.current]); }