Skip to content

Commit 579bd8d

Browse files
committed
keep track of hasOneHorizontalTrace in user Fx.hover calls
1 parent a64943b commit 579bd8d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/fx/hover.js

+4
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,12 @@ function _hover(gd, evt, subplot, noHoverEvent) {
249249
hovermode = 'array';
250250
for(itemnum = 0; itemnum < evt.length; itemnum++) {
251251
cd = gd.calcdata[evt[itemnum].curveNumber||0];
252+
trace = cd[0].trace;
252253
if(cd[0].trace.hoverinfo !== 'skip') {
253254
searchData.push(cd);
255+
if(trace.orientation === 'h') {
256+
hasOneHorizontalTrace = true;
257+
}
254258
}
255259
}
256260
}

0 commit comments

Comments
 (0)