Skip to content

Commit 82f1f7e

Browse files
committed
events: fix regression in Fx.hover
* Use `evt.target` to determine whether the user invoked `Fx.hover` with a fake event.
1 parent f9e99f9 commit 82f1f7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/cartesian/graph_interact.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ function hover(gd, evt, subplot) {
414414

415415
// [x|y]px: the pixels (from top left) of the mouse location
416416
// on the currently selected plot area
417-
var hasUserCalledHover = ('xpx' in evt || 'ypx' in evt),
417+
var hasUserCalledHover = !evt.target,
418418
xpx, ypx;
419419

420420
if(hasUserCalledHover) {

0 commit comments

Comments
 (0)