mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-27 03:38:13 +08:00
enable camera interaction on centroids (#1160)
* pass handleCanvasEvent to graphOverlayLayer * dont pass handlecanvasevent if not interactive
This commit is contained in:
@@ -749,6 +749,11 @@ class Graph extends React.Component {
|
||||
graphPaddingRightLeft={this.graphPaddingRightLeft}
|
||||
graphPaddingTop={this.graphPaddingTop}
|
||||
responsive={responsive}
|
||||
handleCanvasEvent={
|
||||
graphInteractionMode === "zoom"
|
||||
? this.handleCanvasEvent
|
||||
: undefined
|
||||
}
|
||||
>
|
||||
<CentroidLabels />
|
||||
</GraphOverlayLayer>
|
||||
|
||||
Reference in New Issue
Block a user