Skip to content

Commit 3d99880

Browse files
committed
make sure that superimposed pts are in 'closest' hover data:
- so that superimposed trace hover data can skip over 'hoverinfo' traces upon hover label creation.
1 parent d87fc35 commit 3d99880

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/cartesian/graph_interact.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ fx.getClosest = function(cd, distfn, pointData) {
618618
// do this for 'closest'
619619
for(var i=0; i<cd.length; i++) {
620620
var newDistance = distfn(cd[i]);
621-
if(newDistance < pointData.distance) {
621+
if(newDistance <= pointData.distance) {
622622
pointData.index = i;
623623
pointData.distance = newDistance;
624624
}

0 commit comments

Comments
 (0)