Skip to content

Commit

Permalink
fix(client): rm click check and log potential data point for manhatta…
Browse files Browse the repository at this point in the history
…n plot
  • Loading branch information
davidlougheed committed Jan 16, 2024
1 parent cf17a24 commit d03e782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/components/ManhattanPlot.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ const ManhattanPlot = React.memo(
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) {
"data point", dataNoNulls[hoveredItem.current]);
if (onPointClick && e.button === 0 && hoveredItem.current) {
onPointClick(dataNoNulls[hoveredItem.current]);
}
});
Expand Down

0 comments on commit d03e782

Please sign in to comment.