Skip to content

Commit

Permalink
chore(client): more extensive click event logging
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Jan 16, 2024
1 parent 9ee6619 commit f88468a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/components/ManhattanPlot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down

0 comments on commit f88468a

Please sign in to comment.