Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 935b8f1

Browse files
committed
refactor
1 parent f29c7fc commit 935b8f1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/fx/hover.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,12 @@ function _hover(gd, evt, subplot, noHoverEvent, eventTarget) {
466466
// the rest of this function from running and failing
467467
if(['carpet', 'contourcarpet'].indexOf(trace._module.name) !== -1) continue;
468468

469+
// within one trace mode can sometimes be overridden
470+
_mode = hovermode;
471+
if(helpers.isUnifiedHover(_mode)) {
472+
_mode = _mode.charAt(0);
473+
}
474+
469475
if(trace.type === 'splom') {
470476
// splom traces do not generate overlay subplots,
471477
// it is safe to assume here splom traces correspond to the 0th subplot
@@ -476,12 +482,6 @@ function _hover(gd, evt, subplot, noHoverEvent, eventTarget) {
476482
subploti = subplots.indexOf(subplotId);
477483
}
478484

479-
// within one trace mode can sometimes be overridden
480-
_mode = hovermode;
481-
if(helpers.isUnifiedHover(_mode)) {
482-
_mode = _mode.charAt(0);
483-
}
484-
485485
// container for new point, also used to pass info into module.hoverPoints
486486
pointData = {
487487
// trace properties

0 commit comments

Comments
 (0)