From 7a9f0ef29e4c93b47f39982ed82f7e180c510aa2 Mon Sep 17 00:00:00 2001 From: Colin Megill Date: Thu, 28 Jun 2018 01:23:28 -0400 Subject: [PATCH] sourceEvent instead of selection --- src/components/graph/graph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/graph/graph.js b/src/components/graph/graph.js index 8df6fcfb..c08f223b 100644 --- a/src/components/graph/graph.js +++ b/src/components/graph/graph.js @@ -178,7 +178,7 @@ class Graph extends React.Component { } handleBrushSelectAction() { /* This conditional handles procedural brush deselect. Brush emits an event on procedural deselect because it is move: null */ - if (d3.event.selection) { + if (d3.event.sourceEvent !== null) { /* No idea why d3 event scope works like this but apparently