mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-24 07:28:11 +08:00
sourceEvent instead of selection
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user