diff --git a/draftlogs/#6466_fix.md b/draftlogs/#6466_fix.md new file mode 100644 index 00000000000..3149c102208 --- /dev/null +++ b/draftlogs/#6466_fix.md @@ -0,0 +1 @@ + - Fix hover on IE (regression introduced in 2.5.0) [#6466](https://github.com/plotly/plotly.js/pull/6466) diff --git a/src/components/fx/hover.js b/src/components/fx/hover.js index 8e027ad3d6b..3ec8f87db48 100644 --- a/src/components/fx/hover.js +++ b/src/components/fx/hover.js @@ -2124,8 +2124,8 @@ function getBoundingClientRect(gd, node) { var rect = node.getBoundingClientRect(); - var x0 = rect.x; - var y0 = rect.y; + var x0 = rect.left; + var y0 = rect.top; var x1 = x0 + rect.width; var y1 = y0 + rect.height; diff --git a/src/lib/dom.js b/src/lib/dom.js index 6a13e80c188..08c8ee6b20b 100644 --- a/src/lib/dom.js +++ b/src/lib/dom.js @@ -145,8 +145,6 @@ function isTransformableElement(element) { function equalDomRects(a, b) { return ( a && b && - a.x === b.x && - a.y === b.y && a.top === b.top && a.left === b.left && a.right === b.right &&