Skip to content

Commit e63ba4a

Browse files
committed
check for hasCartesian && !hasPie for 'hovermode',
- so that 'hovermode' is set and toggled properly.
1 parent 93493a6 commit e63ba4a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/modebar/buttons.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ function toggleHover(gd) {
500500
var fullLayout = gd._fullLayout;
501501

502502
var onHoverVal;
503-
if(fullLayout._hasCartesian) {
503+
if(fullLayout._hasCartesian && !fullLayout._hasPie) {
504504
onHoverVal = fullLayout._isHoriz ? 'y' : 'x';
505505
}
506506
else onHoverVal = 'closest';

src/plots/cartesian/graph_interact.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ fx.supplyLayoutDefaults = function(layoutIn, layoutOut, fullData) {
6060
coerce('dragmode');
6161

6262
var hovermodeDflt;
63-
if(layoutOut._hasCartesian) {
63+
if(layoutOut._hasCartesian && !layoutOut._hasPie) {
6464
// flag for 'horizontal' plots:
6565
// determines the state of the mode bar 'compare' hovermode button
6666
var isHoriz = layoutOut._isHoriz = fx.isHoriz(fullData);

0 commit comments

Comments
 (0)