Skip to content

Commit 5b6998d

Browse files
committed
comment
1 parent bb704dc commit 5b6998d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/fx/hover.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,9 @@ function _hover(gd, evt, subplot, noHoverEvent, eventTarget) {
713713
gd._spikepoints = newspikepoints;
714714

715715
var sortHoverData = function() {
716+
// When sorting keep the points in the main subplot at the top
717+
// then add points in other subplots
718+
716719
var hoverDataInSubplot = hoverData.filter(function(a) {
717720
return (
718721
(firstXaxis && firstXaxis._id === a.xa._id) &&

0 commit comments

Comments
 (0)