Skip to content

Commit 8dff1a3

Browse files
committed
do not sort items when hovering over multiple subplots
1 parent fd867c3 commit 8dff1a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/components/fx/hover.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,9 @@ function _hover(gd, evt, subplot, noHoverEvent, eventTarget) {
692692
gd._spikepoints = newspikepoints;
693693

694694
var sortHoverData = function() {
695-
hoverData.sort(function(d1, d2) { return d1.distance - d2.distance; });
695+
if(!hoverthrough) {
696+
hoverData.sort(function(d1, d2) { return d1.distance - d2.distance; });
697+
}
696698

697699
// move period positioned points and box/bar-like traces to the end of the list
698700
hoverData = orderRangePoints(hoverData, hovermode);

0 commit comments

Comments
 (0)