@@ -79,18 +79,20 @@ function render(scene) {
79
79
if ( hoverinfoParts . indexOf ( 'name' ) === - 1 ) lastPicked . name = undefined ;
80
80
}
81
81
82
- Fx . loneHover ( {
83
- x : ( 0.5 + 0.5 * pdata [ 0 ] / pdata [ 3 ] ) * width ,
84
- y : ( 0.5 - 0.5 * pdata [ 1 ] / pdata [ 3 ] ) * height ,
85
- xLabel : formatter ( 'xaxis' , selection . traceCoordinate [ 0 ] ) ,
86
- yLabel : formatter ( 'yaxis' , selection . traceCoordinate [ 1 ] ) ,
87
- zLabel : formatter ( 'zaxis' , selection . traceCoordinate [ 2 ] ) ,
88
- text : selection . textLabel ,
89
- name : lastPicked . name ,
90
- color : lastPicked . color
91
- } , {
92
- container : svgContainer
93
- } ) ;
82
+ if ( scene . fullSceneLayout . hovermode ) {
83
+ Fx . loneHover ( {
84
+ x : ( 0.5 + 0.5 * pdata [ 0 ] / pdata [ 3 ] ) * width ,
85
+ y : ( 0.5 - 0.5 * pdata [ 1 ] / pdata [ 3 ] ) * height ,
86
+ xLabel : formatter ( 'xaxis' , selection . traceCoordinate [ 0 ] ) ,
87
+ yLabel : formatter ( 'yaxis' , selection . traceCoordinate [ 1 ] ) ,
88
+ zLabel : formatter ( 'zaxis' , selection . traceCoordinate [ 2 ] ) ,
89
+ text : selection . textLabel ,
90
+ name : lastPicked . name ,
91
+ color : lastPicked . color
92
+ } , {
93
+ container : svgContainer
94
+ } ) ;
95
+ }
94
96
}
95
97
else Fx . loneUnhover ( svgContainer ) ;
96
98
}
0 commit comments