Skip to content

Commit 54d182f

Browse files
Update src/traces/box/hover.js
Co-authored-by: Alex Johnson <alex@plot.ly>
1 parent 8f2ddef commit 54d182f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/traces/box/hover.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,7 @@ function hoverOnBoxes(pointData, xval, yval, hovermode) {
152152

153153
var rev = vAxis.range[1] < vAxis.range[0];
154154

155-
if(
156-
(!rev && trace.orientation === 'h') ||
157-
(rev && trace.orientation === 'v')
158-
) {
155+
if(trace.orientation === (rev ? 'v' : 'h')) {
159156
attrs.reverse();
160157
}
161158

0 commit comments

Comments
 (0)