@@ -130,6 +130,7 @@ module.exports = function plot(gd, calcData) {
130130 } ;
131131
132132 var linkHover = function ( element , d , sankey ) {
133+ if ( gd . _fullLayout . hovermode === false ) return ;
133134 d3 . select ( element ) . call ( linkHoveredStyle . bind ( 0 , d , sankey , true ) ) ;
134135 gd . emit ( 'plotly_hover' , {
135136 event : d3 . event ,
@@ -143,6 +144,7 @@ module.exports = function plot(gd, calcData) {
143144 var outgoingLabel = _ ( gd , 'outgoing flow count:' ) + ' ' ;
144145
145146 var linkHoverFollow = function ( element , d ) {
147+ if ( gd . _fullLayout . hovermode === false ) return ;
146148 var trace = d . link . trace ;
147149 var rootBBox = gd . _fullLayout . _paperdiv . node ( ) . getBoundingClientRect ( ) ;
148150 var boundingBox = element . getBoundingClientRect ( ) ;
@@ -193,6 +195,7 @@ module.exports = function plot(gd, calcData) {
193195 } ;
194196
195197 var nodeHover = function ( element , d , sankey ) {
198+ if ( gd . _fullLayout . hovermode === false ) return ;
196199 d3 . select ( element ) . call ( nodeHoveredStyle , d , sankey ) ;
197200 gd . emit ( 'plotly_hover' , {
198201 event : d3 . event ,
@@ -201,6 +204,7 @@ module.exports = function plot(gd, calcData) {
201204 } ;
202205
203206 var nodeHoverFollow = function ( element , d ) {
207+ if ( gd . _fullLayout . hovermode === false ) return ;
204208 var trace = d . node . trace ;
205209 var nodeRect = d3 . select ( element ) . select ( '.' + cn . nodeRect ) ;
206210 var rootBBox = gd . _fullLayout . _paperdiv . node ( ) . getBoundingClientRect ( ) ;
0 commit comments