Skip to content

Commit f34a9ba

Browse files
committed
fix hover on IE - note getBoundingClientRect on IE has no x and y
1 parent 242708d commit f34a9ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/fx/hover.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,8 +2124,8 @@ function getBoundingClientRect(gd, node) {
21242124

21252125
var rect = node.getBoundingClientRect();
21262126

2127-
var x0 = rect.x;
2128-
var y0 = rect.y;
2127+
var x0 = rect.left;
2128+
var y0 = rect.top;
21292129
var x1 = x0 + rect.width;
21302130
var y1 = y0 + rect.height;
21312131

0 commit comments

Comments
 (0)