Skip to content

Commit 21fa988

Browse files
committed
do not redefine minPos and maxPos functions for bars with period
1 parent 138707c commit 21fa988

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/bar/hover.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ function hoverOnBars(pointData, xval, yval, hovermode, opts) {
156156
// if we get here and we're not in 'closest' mode, push min/max pos back
157157
// onto the group - even though that means occasionally the mouse will be
158158
// over the hover label.
159-
if(!isClosest) {
159+
if(!isClosest && !period) {
160160
minPos = function(di) {
161161
return Math.min(thisBarMinPos(di), di.p - t.bargroupwidth / 2);
162162
};

0 commit comments

Comments
 (0)