File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -2124,14 +2124,16 @@ function _relayout(gd, aobj) {
2124
2124
flags . doticks = flags . dolayoutstyle = true ;
2125
2125
}
2126
2126
/*
2127
- * hovermode and dragmode don't need any redrawing, since they just
2128
- * affect reaction to user input, everything else, assume full replot.
2127
+ * hovermode, dragmode, and spikes don't need any redrawing, since they just
2128
+ * affect reaction to user input. Everything else, assume full replot.
2129
2129
* height, width, autosize get dealt with below. Except for the case of
2130
2130
* of subplots - scenes - which require scene.updateFx to be called.
2131
2131
*/
2132
- else if ( [ 'hovermode' , 'dragmode' ] . indexOf ( ai ) !== - 1 ) flags . domodebar = true ;
2133
- else if ( [ 'hovermode' , 'dragmode' , 'height' ,
2134
- 'width' , 'autosize' ] . indexOf ( ai ) === - 1 ) {
2132
+ else if ( [ 'hovermode' , 'dragmode' ] . indexOf ( ai ) !== - 1 ||
2133
+ ai . indexOf ( 'spike' ) !== - 1 ) {
2134
+ flags . domodebar = true ;
2135
+ }
2136
+ else if ( [ 'height' , 'width' , 'autosize' ] . indexOf ( ai ) === - 1 ) {
2135
2137
flags . doplot = true ;
2136
2138
}
2137
2139
You can’t perform that action at this time.
0 commit comments