mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-08 02:38:11 +08:00
sourceEvent instead of selection
This commit is contained in:
@@ -178,7 +178,7 @@ class Graph extends React.Component {
|
|||||||
}
|
}
|
||||||
handleBrushSelectAction() {
|
handleBrushSelectAction() {
|
||||||
/* This conditional handles procedural brush deselect. Brush emits an event on procedural deselect because it is move: null */
|
/* 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
|
No idea why d3 event scope works like this
|
||||||
but apparently
|
but apparently
|
||||||
|
|||||||
Reference in New Issue
Block a user