Prevent lingering crosshair when mouse leaves dygraph
parent
e13d001bde
commit
d262281b9b
|
@ -244,7 +244,11 @@ class Dygraph extends Component<Props, State> {
|
||||||
const {staticLegend, cellID} = this.props
|
const {staticLegend, cellID} = this.props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="dygraph-child" onMouseMove={this.handleShowLegend}>
|
<div
|
||||||
|
className="dygraph-child"
|
||||||
|
onMouseMove={this.handleShowLegend}
|
||||||
|
onMouseLeave={this.handleHideLegend}
|
||||||
|
>
|
||||||
{this.dygraph && (
|
{this.dygraph && (
|
||||||
<div className="dygraph-addons">
|
<div className="dygraph-addons">
|
||||||
{this.areAnnotationsVisible && (
|
{this.areAnnotationsVisible && (
|
||||||
|
|
Loading…
Reference in New Issue