Skip to content

Commit fb2e544

Browse files
authored
Merge pull request #6466 from plotly/fix-hover-IE
Fix hover on IE
2 parents 242708d + a0c6ec0 commit fb2e544

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Diff for: draftlogs/#6466_fix.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Fix hover on IE (regression introduced in 2.5.0) [#6466](https://github.com/plotly/plotly.js/pull/6466)

Diff for: src/components/fx/hover.js

+2-2
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

Diff for: src/lib/dom.js

-2
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,6 @@ function isTransformableElement(element) {
145145
function equalDomRects(a, b) {
146146
return (
147147
a && b &&
148-
a.x === b.x &&
149-
a.y === b.y &&
150148
a.top === b.top &&
151149
a.left === b.left &&
152150
a.right === b.right &&

0 commit comments

Comments
 (0)